ReadCsv + little rework for UI

ERANZER 2024-01-09 14:32:07 +01:00
parent 1c024fdbfc
commit 0a6ad90343
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ public class Axel {
} }
spr.put(cell,in); spr.put(cell,in);
} }
spr.saveCsv("/tmp/test.csv"); spr.saveCsv("tmp/test.csv");
kb.close(); kb.close();
} }

View File

@ -263,7 +263,7 @@ public class Spreadsheet {
while (m.find()) { // m.find() must always be used before m.group() while (m.find()) { // m.find() must always be used before m.group()
String s = m.group(); String s = m.group();
if(!s.isEmpty()) { if(!s.isEmpty()) {
if((int)s.charAt(0)>=(int)'A'&&(int)s.charAt(0)<=(int)'Z' && get(s).isEmpty()) if((int)s.charAt(0)>=(int)'A'&&(int)s.charAt(0)<=(int)'Z' && get(s).isEmpty())
continue; continue;
if(first && (int)s.charAt(0)>=(int)'A'&&(int)s.charAt(0)<=(int)'Z') { if(first && (int)s.charAt(0)>=(int)'A'&&(int)s.charAt(0)<=(int)'Z') {