| 118 | } |
| 119 | |
| 120 | void Parser::eraseTrailingControlCharacters(const std::string& controlCharacters) { |
| 121 | std::map<int, Element>::iterator it = elementSoup.find(elementCount); |
| 122 | |
| 123 | if ( it != elementSoup.end() ) { |
| 124 | Element * element = &((*it).second); |
| 125 | |
| 126 | if (boost::ends_with(element->text, controlCharacters)) { |
| 127 | boost::erase_tail(element->text, controlCharacters.size()); |
| 128 | } |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | // Block Element Callbacks |
| 133 |