There was an error while loading. Please reload this page.
1 parent ce3cc0b commit 0f91e98Copy full SHA for 0f91e98
2 files changed
sources/net.sf.j2s.java.core/src/javajs/util/CifDataParser.java
@@ -339,10 +339,11 @@ public String readLine() {
339
if (line == null)
340
return null;
341
if (isHeader) {
342
- if (line.startsWith("#"))
+ if (line.startsWith("#")) {
343
fileHeader.append(line).appendC('\n');
344
- else
+ } else if (line.length() > 0) {
345
isHeader = false;
346
+ }
347
}
348
return line;
349
} catch (Exception e) {
sources/net.sf.j2s.java.core/src/test/Test_.java
@@ -95,6 +95,10 @@ private static void _test1(String[] args) {
95
96
static boolean isBatch = false;
97
98
+ /**
99
+ * static public j2sHeadless TRUE
100
+ * triggers headless operation in swingjs2.js
101
+ */
102
static public boolean j2sHeadless = true;
103
104
static public int bhtest = 100;
0 commit comments