| 1536 | |
| 1537 | #if __CYGWIN__ || _WIN32 |
| 1538 | void normalize_eol(std::string &str) |
| 1539 | { |
| 1540 | std::string str2 = ""; |
| 1541 | for (int i = 0; i < str.size(); i++) |
| 1542 | { |
| 1543 | if (str[i] == '\n') |
| 1544 | { |
| 1545 | str2 += "\r\n"; |
| 1546 | } |
| 1547 | else if (str[i] != '\r') |
| 1548 | { |
| 1549 | str2 += str[i]; |
| 1550 | } |
| 1551 | } |
| 1552 | str = str2; |
| 1553 | } |
| 1554 | #endif |
| 1555 | |
| 1556 | void NodeText::gettext(std::ostream &stream, data_map &) |