Fixed #439 (CRLF issue with plain-text macros)

This commit is contained in:
Matthias Koefferlein 2019-12-07 19:14:21 +01:00
parent a430b4df83
commit 9ef90aa135
1 changed files with 2 additions and 1 deletions

View File

@ -240,7 +240,8 @@ void Macro::load_from (const std::string &fn)
} else if (m_format == PlainTextFormat || m_format == PlainTextWithHashAnnotationsFormat) {
tl::InputStream stream (path);
m_text = stream.read_all ();
tl::TextInputStream text_stream (stream);
m_text = text_stream.read_all ();
sync_properties_with_text ();
}