Verified Commit 7d267731 authored by Valentin David's avatar Valentin David Committed by Thomas Haller

build/docs: fix generated XML syntax in tools/generate-docs-nm-settings-docs-gir.py

Class description may contains double quotes which is not valid as XML
attribute value.

[thaller@redhat.com: adjust original patch to reformat code with python black]

!620
(cherry picked from commit 54e25f23)
parent 561bd7bb
Pipeline #199453 passed with stage
in 36 minutes and 4 seconds
......@@ -244,8 +244,12 @@ for settingxml in settings:
"%s needs a gtk-doc block with one-line description" % setting.props.name
)
outfile.write(
' <setting name="%s" description="%s" name_upper="%s" >\n'
% (setting.props.name, class_desc, get_setting_name_define(settingxml))
' <setting name="%s" description=%s name_upper="%s" >\n'
% (
setting.props.name,
xml_quoteattr(class_desc),
get_setting_name_define(settingxml),
)
)
setting_properties = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment