convert tabs to spaces so they don't get converted to '?'
| 236 | |
| 237 | // convert tabs to spaces so they don't get converted to '?' |
| 238 | static char * tabs_to_spaces(char *str) { |
| 239 | for (char *c = str; *c; ++c) { |
| 240 | if (*c == '\t') |
| 241 | *c = ' '; |
| 242 | } |
| 243 | return str; |
| 244 | } |
| 245 | |
| 246 | static string normalize_newlines(const string & str, bool to_spaces = false) { |
| 247 | string normalized_str = str; |
no outgoing calls
no test coverage detected