Skip to contentSkip to conversation

docs/parse-support-md: Handle BulletList

PATCH In review Anthony PERARD 2 participants 3 messages Mar 19, 2024 – Mar 20, 2024

lore
Share & tools
lore
#0 lore raw

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().

Fixes d638e304f13a ("SUPPORT.MD: Fix matrix generation after 43c416d0d819 and 77c39a53cf5b")
---
 docs/parse-support-md | 7 +++++++
 1 file changed, 7 insertions(+)
docs/parse-support-md +7 -0
index a397637639..b04f62da37 100755
@@ -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
Tested-by Acked-by on v1 1/1
#1 lore raw

Hi Anthony,

Quoted 9 lines · Anthony PERARD

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().

Fixes d638e304f13a ("SUPPORT.MD: Fix matrix generation after 43c416d0d819 and 77c39a53cf5b")

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
index a397637639..b04f62da37 100755
@@ -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
#2 lore raw
Quoted 9 lines · Julien Grall

Hi Anthony,

Quoted 6 lines · Anthony PERARD

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().

Quoted 8 lines
Quoted 3 lines
Fixes d638e304f13a ("SUPPORT.MD: Fix matrix generation after 43c416d0d819 and 77c39a53cf5b")

My Perl knowledge is rubbish. But I tested the fix. So:

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
index a397637639..b04f62da37 100755
@@ -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;

docs/parse-support-md +2 -0
+}
+

  sub process_unknown {
      my ($c, $e) = @_;
      $had_unknown = Dumper($e);

Signature · 1 line
Julien Grall