From 2c1d1fbdf96b4eb90fa48a3602cf869acf054d6c Mon Sep 17 00:00:00 2001 From: Kang Seonghoon Date: Sun, 18 Jan 2015 13:23:34 +0900 Subject: [PATCH] tests: Warn on the trailing backslash in the template. --- src/etc/htmldocck.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/etc/htmldocck.py b/src/etc/htmldocck.py index 257342175897..ad78e13ca259 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]+)*)