From 2c1d1fbdf96b4eb90fa48a3602cf869acf054d6c Mon Sep 17 00:00:00 2001 From: Kang Seonghoon Date: Sun, 18 Jan 2015 13:23:34 +0900 Subject: tests: Warn on the trailing backslash in the template. --- src/etc/htmldocck.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/etc/htmldocck.py') diff --git a/src/etc/htmldocck.py b/src/etc/htmldocck.py index 25734217589..ad78e13ca25 100644 --- a/src/etc/htmldocck.py +++ b/src/etc/htmldocck.py @@ -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''' (?<=(?!?) (?P[A-Za-z]+(?:-[A-Za-z]+)*) -- cgit 1.4.1-3-g733a5