docs/parse-support-md: Handle BulletList
PATCH 1/1 docs/parse-support-md: Handle BulletList
Commit d638e304f13a introduced a bullet list, but parse-support-md choke on it as it doesn't know what to do about it.
Introduce ri_BulletList() so that r_content() will find this new function and call it instead of calling process_unknown().
--- docs/parse-support-md | 7 +++++++ 1 file changed, 7 insertions(+)
docs/parse-support-md +7 -0
@@ -218,6 +218,13 @@ sub ri_DefinitionList { } } +sub ri_BulletList { + # Assume a paragraph introduce this bullet list, which would mean that + # ri_Para() has already been called, and there's nothing else to do about + # the caveat. + return; +} + sub process_unknown { my ($c, $e) = @_; $had_unknown = Dumper($e);
Signature · 1 line
Anthony PERARD
Hi Anthony,
Quoted 9 lines · Anthony PERARD
Commit
d638e304f13aintroduced a bullet list, but parse-support-md choke on it as it doesn't know what to do about it.Introduce
ri_BulletList()so thatr_content()will find this new function and call it instead of callingprocess_unknown().Reported-by Julien Grall <[email protected]>Fixes d638e304f13a ("SUPPORT.MD: Fix matrix generation after 43c416d0d819 and 77c39a53cf5b")Signed-off-by Anthony PERARD <[email protected]>
My Perl knowledge is rubbish. But I tested the fix. So:
Cheers,
Quoted 22 lines
--- docs/parse-support-md | 7 +++++++ 1 file changed, 7 insertions(+)docs/parse-support-md +7
-0@@ -218,6 +218,13 @@ sub ri_DefinitionList { } } +sub ri_BulletList { + # Assume a paragraph introduce this bullet list, which would mean that + # ri_Para() has already been called, and there's nothing else to do about + # the caveat. + return; +} + sub process_unknown { my ($c, $e) = @_; $had_unknown = Dumper($e);
Signature · 1 line
Julien Grall
Quoted 9 lines · Julien Grall
Hi Anthony,
Quoted 6 lines · Anthony PERARD
Commit
d638e304f13aintroduced a bullet list, but parse-support-md choke on it as it doesn't know what to do about it.Introduce
ri_BulletList()so thatr_content()will find this new function and call it instead of callingprocess_unknown().
Quoted 8 lines
Quoted 3 lines
Reported-by Julien Grall <[email protected]>Fixes d638e304f13a ("SUPPORT.MD: Fix matrix generation after 43c416d0d819 and 77c39a53cf5b")Signed-off-by Anthony PERARD <[email protected]>My Perl knowledge is rubbish. But I tested the fix. So:
Tested-by Julien Grall <[email protected]>Acked-by Julien Grall <[email protected]>
And committed.
Cheers,
Quoted 27 lines
Cheers,
Quoted 23 lines
---
docs/parse-support-md | 7 +++++++1 file changed, 7 insertions(+)docs/parse-support-md +2
-0@@ -218,6 +218,13 @@ sub ri_DefinitionList { } } +sub ri_BulletList { + # Assume a paragraph introduce this bullet list, which would meanthat
+ #ri_Para()has already been called, and there's nothing else to do about
+ # the caveat.
+ return;docs/parse-support-md +2
-0+} +sub
process_unknown{
my ($c, $e) = @_;
$had_unknown = Dumper($e);
Signature · 1 line
Julien Grall