Skip to content

Commit 0f91e98

Browse files
committed
CIFDataParser fix
1 parent ce3cc0b commit 0f91e98

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

sources/net.sf.j2s.java.core/src/javajs/util/CifDataParser.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,11 @@ public String readLine() {
339339
if (line == null)
340340
return null;
341341
if (isHeader) {
342-
if (line.startsWith("#"))
342+
if (line.startsWith("#")) {
343343
fileHeader.append(line).appendC('\n');
344-
else
344+
} else if (line.length() > 0) {
345345
isHeader = false;
346+
}
346347
}
347348
return line;
348349
} catch (Exception e) {

sources/net.sf.j2s.java.core/src/test/Test_.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ private static void _test1(String[] args) {
9595

9696
static boolean isBatch = false;
9797

98+
/**
99+
* static public j2sHeadless TRUE
100+
* triggers headless operation in swingjs2.js
101+
*/
98102
static public boolean j2sHeadless = true;
99103

100104
static public int bhtest = 100;

0 commit comments

Comments
 (0)