From cafbdaab19bbbbfc57a53c7a816eaba0072376a2 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 25 Aug 2020 23:00:04 -0700 Subject: [PATCH] doc: wikiparser: Place anchors inside paragraphs Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- doc/scripts/wikiparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/scripts/wikiparser.py b/doc/scripts/wikiparser.py index 51bae56e5..b1a9a0d25 100644 --- a/doc/scripts/wikiparser.py +++ b/doc/scripts/wikiparser.py @@ -1053,7 +1053,7 @@ TableItem([Paragraph([PlainText('3 ')])])])])] [Category('FreedomBox')] >>> parse_wiki('<>') - [Anchor('gettinghelp')] + [Paragraph([Anchor('gettinghelp')])] >>> parse_wiki('<>') [Include('FreedomBox/Portal')] @@ -1521,7 +1521,7 @@ PlainText(' dialog. ')])])])] match = re.match(r'<>', line) if match: content = match.group(1) - elements.append(Anchor(content)) + elements.append(Paragraph([Anchor(content)])) continue # Include