diff options
| author | tmccolm <tmccolm@cinecert.com> | 2006-06-23 19:48:03 +0000 |
|---|---|---|
| committer | tmccolm <> | 2006-06-23 19:48:03 +0000 |
| commit | c589ee9d47d9f00aa4be32c5832a44ce466f014d (patch) | |
| tree | d285585caea07384dc75c5cb2a697df821437f72 /src/KM_xml.cpp | |
| parent | 5e91ca52284adc91a42d6fe389c9cc70a33126a6 (diff) | |
2006/06/23 tmccolm
Diffstat (limited to 'src/KM_xml.cpp')
| -rw-r--r-- | src/KM_xml.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/KM_xml.cpp b/src/KM_xml.cpp index 794e2e7..605ea11 100644 --- a/src/KM_xml.cpp +++ b/src/KM_xml.cpp @@ -138,10 +138,12 @@ Kumu::XMLElement::RenderElement(std::string& outbuf, ui32_t depth) outbuf += "\""; } + outbuf += ">"; + // body contents and children if ( ! m_ChildList.empty() ) { - outbuf += ">\n"; + outbuf += "\n"; // render body if ( m_Body.length() > 0 ) @@ -151,22 +153,15 @@ Kumu::XMLElement::RenderElement(std::string& outbuf, ui32_t depth) (*i)->RenderElement(outbuf, depth + 1); add_spacer(outbuf, depth); - outbuf += "</"; - outbuf += m_Name; - outbuf += ">\n"; } else if ( m_Body.length() > 0 ) { - outbuf += ">"; outbuf += m_Body; - outbuf += "</"; - outbuf += m_Name; - outbuf += ">\n"; - } - else - { - outbuf += " />\n"; } + + outbuf += "</"; + outbuf += m_Name; + outbuf += ">\n"; } |
