Package: newsbeuter / 2.9-5+deb9u2

17-dont-ignore-self-closing-tags.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Origin: upstream, https://github.com/akrennmair/newsbeuter/commit/8af5d76dbd3566ff5408bf92d704968ea26b6743

--- a/src/tagsouppullparser.cpp
+++ b/src/tagsouppullparser.cpp
@@ -502,6 +502,10 @@
 			if (pos == std::string::npos)
 				pos = tagstr.length();
 			text = tagstr.substr(last_pos, pos - last_pos);
+			if (text[text.length()-1] == '/') {
+				// a kludge for <br/>
+				text.pop_back();
+			}
 			LOG(LOG_DEBUG, "parse_tag: tag name = %s", text.c_str());
 		} else {
 			pos = tagstr.find_first_of("= ", last_pos);