Skip to content

Commit 2c1d1fb

Browse files
committed
tests: Warn on the trailing backslash in the template.
1 parent 39e19cc commit 2c1d1fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/etc/htmldocck.py

+3
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ def concat_multi_lines(f):
176176
firstlineno = None
177177
catenated = ''
178178

179+
if lastline is not None:
180+
raise RuntimeError('Trailing backslash in the end of file')
181+
179182
LINE_PATTERN = re.compile(r'''
180183
(?<=(?<!\S)@)(?P<negated>!?)
181184
(?P<cmd>[A-Za-z]+(?:-[A-Za-z]+)*)

0 commit comments

Comments
 (0)