1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-01 01:49:03 +00:00

unspace now also affects eol

This commit is contained in:
Zeno Rogue
2025-12-07 13:08:11 +01:00
parent 42ec433af0
commit 2b339a7ee9

View File

@@ -12,7 +12,7 @@ void visit(cell *c, int d) {
string unspace(const string& s) {
string t;
for(char c: s) if(c == ' ') t += "_"; else t += c;
for(char c: s) if(c == ' ') t += "_"; else if(c == '\n') t += "@"; else t += c;
return t;
}