mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
doc: wikiparser: Set icon dimensions to old values (temporarily)
- For easier diff Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
feb81b8fb6
commit
4448b5baa8
@ -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', \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user