cmark

My personal build of CMark ✏️

Commit
b1dd05c53e677348f3e9722da2429e96a5861e2b
Parent
93843bd2fe8c91fe9e659c5b801f1a7d672dc223
Author
John MacFarlane <jgm@berkeley.edu>
Date

Fixed make_man_page.py so it includes typedefs again.

Diffstat

1 file changed, 3 insertions, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified man/make_man_page.py 4 3 1
diff --git a/man/make_man_page.py b/man/make_man_page.py
@@ -83,9 +83,11 @@ with open(sourcefile, 'r') as cmarkh:
             state = 'default'
         elif typedef and typedef_end_re.match(line):
             typedef = False
+        elif typedef_start_re.match(line):
+            typedef = True
+            state = 'signature'
         elif state == 'man':
             state = 'signature'
-            typedef = typedef_start_re.match(line)
 
         # handle line
         if state == 'man':