diff --git a/doc/scripts/wikiparser.py b/doc/scripts/wikiparser.py index ab63c0ea3..f75eebcf8 100644 --- a/doc/scripts/wikiparser.py +++ b/doc/scripts/wikiparser.py @@ -616,7 +616,7 @@ def parse_text(line, context=None, parse_links=True): target = f'{ICONS_DIR}/{WIKI_ICONS[line.strip()]}.png' result.append( EmbeddedAttachment(target, [PlainText(icon_text)], - 'height=20')) + 'depth=16,width=16')) line = line.lstrip().replace(icon_text, '', 1) break @@ -975,22 +975,22 @@ PlainText(' ')])] >>> parse_wiki('/!\\\\') [Paragraph([EmbeddedAttachment('icons/alert.png', \ -[PlainText('/!\\\\')], 'height=20'), PlainText(' ')])] +[PlainText('/!\\\\')], 'depth=16,width=16'), PlainText(' ')])] >>> parse_wiki('(./)') [Paragraph([EmbeddedAttachment('icons/checkmark.png', \ -[PlainText('(./)')], 'height=20'), PlainText(' ')])] +[PlainText('(./)')], 'depth=16,width=16'), PlainText(' ')])] >>> parse_wiki('{X}') [Paragraph([EmbeddedAttachment('icons/icon-error.png', \ -[PlainText('{X}')], 'height=20'), PlainText(' ')])] +[PlainText('{X}')], 'depth=16,width=16'), PlainText(' ')])] >>> parse_wiki('{i}') [Paragraph([EmbeddedAttachment('icons/icon-info.png', \ -[PlainText('{i}')], 'height=20'), PlainText(' ')])] +[PlainText('{i}')], 'depth=16,width=16'), PlainText(' ')])] >>> parse_wiki('{o}') [Paragraph([EmbeddedAttachment('icons/star_off.png', \ -[PlainText('{o}')], 'height=20'), PlainText(' ')])] +[PlainText('{o}')], 'depth=16,width=16'), PlainText(' ')])] >>> parse_wiki('{*}') [Paragraph([EmbeddedAttachment('icons/star_on.png', \ -[PlainText('{*}')], 'height=20'), PlainText(' ')])] +[PlainText('{*}')], 'depth=16,width=16'), PlainText(' ')])] >>> parse_wiki('{{attachment:cockpit-enable.png}}') [Paragraph([EmbeddedAttachment('cockpit-enable.png', \