Browse Source

Altium: fix multiline text with Windows line endings

pull/16/head
Jon Evans 6 years ago
parent
commit
b5dffa8229
  1. 3
      pcbnew/altium2kicadpcb_plugin/altium_parser_pcb.cpp

3
pcbnew/altium2kicadpcb_plugin/altium_parser_pcb.cpp

@ -889,6 +889,9 @@ ATEXT6::ATEXT6( ALTIUM_PARSER& aReader )
text = aReader.ReadWxString(); // TODO: what about strings with length > 255?
// Normalize Windows line endings
text.Replace( "\r\n", "\n" );
aReader.SkipSubrecord();
if( aReader.HasParsingError() )

Loading…
Cancel
Save