| 1822 | |
| 1823 | |
| 1824 | bool TiXmlPrinter::Visit( const TiXmlText& text ) |
| 1825 | { |
| 1826 | if ( text.CDATA() ) |
| 1827 | { |
| 1828 | DoIndent(); |
| 1829 | buffer += "<![CDATA["; |
| 1830 | buffer += text.Value(); |
| 1831 | buffer += "]]>"; |
| 1832 | DoLineBreak(); |
| 1833 | } |
| 1834 | else if ( simpleTextPrint ) |
| 1835 | { |
| 1836 | TIXML_STRING str; |
| 1837 | TiXmlBase::EncodeString( text.ValueTStr(), &str ); |
| 1838 | buffer += str; |
| 1839 | } |
| 1840 | else |
| 1841 | { |
| 1842 | DoIndent(); |
| 1843 | TIXML_STRING str; |
| 1844 | TiXmlBase::EncodeString( text.ValueTStr(), &str ); |
| 1845 | buffer += str; |
| 1846 | DoLineBreak(); |
| 1847 | } |
| 1848 | return true; |
| 1849 | } |
| 1850 | |
| 1851 | |
| 1852 | bool TiXmlPrinter::Visit( const TiXmlDeclaration& declaration ) |