| 1554 | #endif |
| 1555 | |
| 1556 | void NodeText::gettext(std::ostream &stream, data_map &) |
| 1557 | { |
| 1558 | std::string str; |
| 1559 | if (s_removeNewLine && m_text[0] == '\n') |
| 1560 | { |
| 1561 | if (m_text.size() > 1) |
| 1562 | { |
| 1563 | str = m_text.substr(1, m_text.size() - 1); |
| 1564 | } |
| 1565 | } |
| 1566 | else |
| 1567 | { |
| 1568 | str = m_text; |
| 1569 | } |
| 1570 | s_removeNewLine = false; |
| 1571 | |
| 1572 | #if __CYGWIN__ || _WIN32 |
| 1573 | normalize_eol(str); |
| 1574 | #endif |
| 1575 | |
| 1576 | stream << str; |
| 1577 | } |
| 1578 | |
| 1579 | // NodeVar |
| 1580 | NodeType NodeVar::gettype() |