From 9ef90aa13549034b72af13cbb7b91b8c2f098d3f Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 7 Dec 2019 19:14:21 +0100 Subject: [PATCH] Fixed #439 (CRLF issue with plain-text macros) --- src/lym/lym/lymMacro.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lym/lym/lymMacro.cc b/src/lym/lym/lymMacro.cc index c8a94b594..b82ce7b5a 100644 --- a/src/lym/lym/lymMacro.cc +++ b/src/lym/lym/lymMacro.cc @@ -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 (); }