mirror of https://github.com/KLayout/klayout.git
Fixed #439 (CRLF issue with plain-text macros)
This commit is contained in:
parent
a430b4df83
commit
9ef90aa135
|
|
@ -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 ();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue