Show More
@@ -11,11 +11,15 b' import re' | |||
|
11 | 11 | |
|
12 | 12 | leadingline = re.compile(r'(^\s*)(\S.*)$') |
|
13 | 13 | hg_backtick = re.compile(r""":hg:`[^`]*'[^`]*`""") |
|
14 | hg_cramped = re.compile(r'\w:hg:`') | |
|
14 | 15 | |
|
15 | 16 | def check(line): |
|
16 | 17 | if hg_backtick.search(line): |
|
17 | 18 | print(line) |
|
18 | 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 | 24 | def work(file): |
|
21 | 25 | (llead, lline) = ('', '') |
@@ -32,6 +32,8 b' Test document extraction' | |||
|
32 | 32 | |
|
33 | 33 | % extracting documentation from de |
|
34 | 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 | 38 | % extracting documentation from el |
|
37 | 39 | checking for parse errors |
General Comments 0
You need to be logged in to leave comments.
Login now