swift flag: handle XML in help strings

Some swift help strings use XML tags that were not properly managed and
resulted in truncated string. This patch workarounds the problem by
dropping the XML flags.

Change-Id: I13ba4a9a840c93e3933bbeaaec2d84651efeff2e
This commit is contained in:
Gauvain Pocentek 2015-04-02 15:38:55 +02:00
parent 1b5f0b0360
commit ffc688413d

View File

@ -91,7 +91,8 @@ def get_existing_options(optfiles):
try:
col1, col2 = tr.findall(DBK_NS + "td")
option = col1.find(DBK_NS + "option").text
helptext = col2.text
helptext = etree.tostring(col2, xml_declaration=False,
method="text")
except IndexError:
continue
if option not in options or 'No help text' in options[option]: