From 4448b5baa8f17f308a388edc968144c90cbce06f Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 26 Aug 2020 00:20:45 -0700 Subject: [PATCH] doc: wikiparser: Set icon dimensions to old values (temporarily) - For easier diff Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- doc/scripts/wikiparser.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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', \