| 41 | } |
| 42 | |
| 43 | void cmXMLWriter::EndElement() |
| 44 | { |
| 45 | assert(this->Indent > 0); |
| 46 | --this->Indent; |
| 47 | if (this->ElementOpen) { |
| 48 | this->Output << "/>"; |
| 49 | } else { |
| 50 | this->ConditionalLineBreak(!this->IsContent); |
| 51 | this->IsContent = false; |
| 52 | this->Output << "</" << this->Elements.top() << '>'; |
| 53 | } |
| 54 | this->Elements.pop(); |
| 55 | this->ElementOpen = false; |
| 56 | } |
| 57 | |
| 58 | void cmXMLWriter::Element(char const* name) |
| 59 | { |
no test coverage detected