| 1709 | } |
| 1710 | |
| 1711 | bool TiXmlPrinter::Visit(const TiXmlText& text) |
| 1712 | { |
| 1713 | if (text.CDATA()) |
| 1714 | { |
| 1715 | DoIndent(); |
| 1716 | buffer += "<![CDATA["; |
| 1717 | buffer += text.Value(); |
| 1718 | buffer += "]]>"; |
| 1719 | DoLineBreak(); |
| 1720 | } |
| 1721 | else if (simpleTextPrint) |
| 1722 | { |
| 1723 | buffer += text.Value(); |
| 1724 | } |
| 1725 | else |
| 1726 | { |
| 1727 | DoIndent(); |
| 1728 | buffer += text.Value(); |
| 1729 | DoLineBreak(); |
| 1730 | } |
| 1731 | return true; |
| 1732 | } |
| 1733 | |
| 1734 | bool TiXmlPrinter::Visit(const TiXmlDeclaration& declaration) |
| 1735 | { |