Skip to content

Commit

Permalink
Multiline SD value joined with non OS newline [bug:1337]
Browse files Browse the repository at this point in the history
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed Jul 15, 2014
1 parent 5298ddc commit 5b4c073
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -1797,8 +1797,6 @@ else if (line.startsWith("M RGP")) {
static void readNonStructuralData(final BufferedReader input,
final IAtomContainer container) throws IOException {

final String newline = System.getProperty("line.separator");

String line, header = null;
boolean wrap = false;

Expand Down Expand Up @@ -1827,7 +1825,7 @@ static void readNonStructuralData(final BufferedReader input,
continue;

if (!wrap && data.length() > 0)
data.append(newline);
data.append('\n');
data.append(line);

wrap = line.length() == 80;
Expand Down

0 comments on commit 5b4c073

Please sign in to comment.