| 1832 | |
| 1833 | |
| 1834 | bool TiXmlPrinter::Visit( const TiXmlText& text ) |
| 1835 | { |
| 1836 | if ( text.CDATA() ) |
| 1837 | { |
| 1838 | DoIndent(); |
| 1839 | buffer += "<![CDATA["; |
| 1840 | buffer += text.Value(); |
| 1841 | buffer += "]]>"; |
| 1842 | DoLineBreak(); |
| 1843 | } |
| 1844 | else if ( simpleTextPrint ) |
| 1845 | { |
| 1846 | TIXML_STRING str; |
| 1847 | TiXmlBase::EncodeString( text.ValueTStr(), &str ); |
| 1848 | buffer += str; |
| 1849 | } |
| 1850 | else |
| 1851 | { |
| 1852 | DoIndent(); |
| 1853 | TIXML_STRING str; |
| 1854 | TiXmlBase::EncodeString( text.ValueTStr(), &str ); |
| 1855 | buffer += str; |
| 1856 | DoLineBreak(); |
| 1857 | } |
| 1858 | return true; |
| 1859 | } |
| 1860 | |
| 1861 | |
| 1862 | bool TiXmlPrinter::Visit( const TiXmlDeclaration& declaration ) |