Skip to content

Commit

Permalink
tests: Warn on the trailing backslash in the template.
Browse files Browse the repository at this point in the history
  • Loading branch information
lifthrasiir committed Jan 18, 2015
1 parent 39e19cc commit 2c1d1fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/etc/htmldocck.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ def concat_multi_lines(f):
firstlineno = None
catenated = ''

if lastline is not None:
raise RuntimeError('Trailing backslash in the end of file')

LINE_PATTERN = re.compile(r'''
(?<=(?<!\S)@)(?P<negated>!?)
(?P<cmd>[A-Za-z]+(?:-[A-Za-z]+)*)
Expand Down

0 comments on commit 2c1d1fb

Please sign in to comment.