@@ -47,19 +47,19 @@ def md2man(text):
47
47
textlen = len (text )
48
48
return render_man (parse_document (textbytes , textlen ), 0 , 72 )
49
49
50
- comment_start_re = re .compile ('^\/\*\* ?' )
51
- comment_delim_re = re .compile ('^[/ ]\** ?' )
52
- comment_end_re = re .compile ('^ \**\/' )
53
- function_re = re .compile ('^ *(?:CMARK_EXPORT\s+)?(?P<type>(?:const\s+)?\w+(?:\s*[*])?)\s*(?P<name>\w+)\s*\((?P<args>[^)]*)\)' )
54
- blank_re = re .compile ('^\s*$' )
55
- macro_re = re .compile ('CMARK_EXPORT *' )
56
- typedef_start_re = re .compile ('typedef.*{$' )
57
- typedef_end_re = re .compile ('}' )
58
- single_quote_re = re .compile ("(?<!\w)'([^']+)'(?!\w)" )
59
- double_quote_re = re .compile ("(?<!\w)''([^']+)''(?!\w)" )
50
+ comment_start_re = re .compile (r '^\/\*\* ?' )
51
+ comment_delim_re = re .compile (r '^[/ ]\** ?' )
52
+ comment_end_re = re .compile (r '^ \**\/' )
53
+ function_re = re .compile (r '^ *(?:CMARK_EXPORT\s+)?(?P<type>(?:const\s+)?\w+(?:\s*[*])?)\s*(?P<name>\w+)\s*\((?P<args>[^)]*)\)' )
54
+ blank_re = re .compile (r '^\s*$' )
55
+ macro_re = re .compile (r 'CMARK_EXPORT *' )
56
+ typedef_start_re = re .compile (r 'typedef.*{$' )
57
+ typedef_end_re = re .compile (r '}' )
58
+ single_quote_re = re .compile (r "(?<!\w)'([^']+)'(?!\w)" )
59
+ double_quote_re = re .compile (r "(?<!\w)''([^']+)''(?!\w)" )
60
60
61
61
def handle_quotes (s ):
62
- return re .sub (double_quote_re , '**\g<1>**' , re .sub (single_quote_re , '*\g<1>*' , s ))
62
+ return re .sub (double_quote_re , r '**\g<1>**' , re .sub (single_quote_re , r '*\g<1>*' , s ))
63
63
64
64
typedef = False
65
65
mdlines = []
0 commit comments