mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-09-22 02:58:41 +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 unspace(const string& s) {
|
||||||
string t;
|
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;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user