Open GoogleCodeExporter opened 9 years ago
The parser does not understand "<br/>". I think that the problem is that the
'/' becomes a part of the tag name in this case.
I have made a quick and dirty fix:
--- ../../newsbeuter-2.4/src/tagsouppullparser.cpp 2011-02-01
11:52:29.000000000 +0100
+++ tagsouppullparser.cpp 2011-03-03 23:32:22.710438472 +0100
@@ -486,8 +486,11 @@ void tagsouppullparser::parse_tag(const
while (last_pos != std::string::npos) {
if (count == 0) {
// first token: tag name
- if (pos == std::string::npos)
+ if (pos == std::string::npos) {
pos = tagstr.length();
+ if (tagstr[tagstr.length()-1] == '/')
+ pos--;
+ }
text = tagstr.substr(last_pos, pos - last_pos);
LOG(LOG_DEBUG, "parse_tag: tag name = %s", text.c_str());
} else {
Original comment by mat...@gmail.com
on 3 Mar 2011 at 10:47
Original issue reported on code.google.com by
prof...@jimpryor.net
on 23 Aug 2010 at 8:20