Fix commas in settings docs

Otherwise, asciidoc interprets it as a third parameter to the xref...

Fixes #3046
This commit is contained in:
Florian Bruhin 2017-10-02 20:08:02 +02:00
parent 5af8a95c82
commit 64e0313090
2 changed files with 4 additions and 3 deletions

View File

@ -1944,7 +1944,7 @@ Default: +pass:[ask]+
=== content.user_stylesheets
A list of user stylesheet filenames to use.
Type: <<types,List of File, or File>>
Type: <<types,List of File&#44; or File>>
Default: empty
@ -3065,7 +3065,7 @@ Default:
=== url.start_pages
The page(s) to open at the start.
Type: <<types,List of FuzzyUrl, or FuzzyUrl>>
Type: <<types,List of FuzzyUrl&#44; or FuzzyUrl>>
Default: +pass:[https://start.duckduckgo.com]+

View File

@ -416,7 +416,8 @@ def _generate_setting_option(f, opt):
f.write("=== {}".format(opt.name) + "\n")
f.write(opt.description + "\n")
f.write("\n")
f.write('Type: <<types,{typ}>>\n'.format(typ=opt.typ.get_name()))
typ = opt.typ.get_name().replace(',', '&#44;')
f.write('Type: <<types,{typ}>>\n'.format(typ=typ))
f.write("\n")
valid_values = opt.typ.get_valid_values()