##// END OF EJS Templates
docchecker: scan for missing space before :hg:
timeless -
r27733:3d1baa70 default
parent child Browse files
Show More
@@ -11,11 +11,15 b' import re'
11
11
12 leadingline = re.compile(r'(^\s*)(\S.*)$')
12 leadingline = re.compile(r'(^\s*)(\S.*)$')
13 hg_backtick = re.compile(r""":hg:`[^`]*'[^`]*`""")
13 hg_backtick = re.compile(r""":hg:`[^`]*'[^`]*`""")
14 hg_cramped = re.compile(r'\w:hg:`')
14
15
15 def check(line):
16 def check(line):
16 if hg_backtick.search(line):
17 if hg_backtick.search(line):
17 print(line)
18 print(line)
18 print("""warning: please avoid nesting ' in :hg:`...`""")
19 print("""warning: please avoid nesting ' in :hg:`...`""")
20 if hg_cramped.search(line):
21 print(line)
22 print('warning: please have a space before :hg:')
19
23
20 def work(file):
24 def work(file):
21 (llead, lline) = ('', '')
25 (llead, lline) = ('', '')
@@ -32,6 +32,8 b' Test document extraction'
32
32
33 % extracting documentation from de
33 % extracting documentation from de
34 checking for parse errors
34 checking for parse errors
35 Die Dateien werden dem Projektarchiv beim n\xc3\xa4chsten \xc3\x9cbernehmen (commit) hinzugef\xc3\xbcgt. Um dies vorher r\xc3\xbcckg\xc3\xa4ngig zu machen, siehe:hg:`forget`. (esc)
36 warning: please have a space before :hg:
35
37
36 % extracting documentation from el
38 % extracting documentation from el
37 checking for parse errors
39 checking for parse errors
General Comments 0
You need to be logged in to leave comments. Login now