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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user