Adding in quote and whitespace handling that was somehow missed.

This commit is contained in:
Rob Greene
2025-11-22 12:24:40 -06:00
parent 2574c5a0a1
commit 26df0bc0cd
2 changed files with 29 additions and 0 deletions
@@ -64,7 +64,10 @@ public class NibbleCheckit extends LineOrientedProofReader {
}
case STRING -> String.format("\"%s\"", token.text());
};
boolean inQuote = false;
for (char ch : value.toCharArray()) {
if (ch == '"') inQuote = !inQuote;
if (!inQuote && ch == ' ') continue;
lineChecksum = checkit(lineChecksum, ch|0x80);
}
return token;