about summary refs log tree commit diff
path: root/src/etc/htmldocck.py
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-04-10 16:18:44 +0000
committerbors <bors@rust-lang.org>2015-04-10 16:18:44 +0000
commitc897ac04e2ebda378fd9e38f6ec0878ae3a2baf7 (patch)
treef26b1f3541943b61937faf150f90b46e9a8f15c5 /src/etc/htmldocck.py
parent9539627ac76ca37d617a329dbd79c50c59cf59ee (diff)
parent445faca8441aae34c91318b6ad9e2049885af8dc (diff)
downloadrust-c897ac04e2ebda378fd9e38f6ec0878ae3a2baf7.tar.gz
rust-c897ac04e2ebda378fd9e38f6ec0878ae3a2baf7.zip
Auto merge of #24177 - alexcrichton:rustdoc, r=aturon
This commit series starts out with more official test harness support for rustdoc tests, and then each commit afterwards adds a test (where appropriate). Each commit should also test and finish independently of all others (they're all pretty separable).

I've uploaded a [copy of the documentation](http://people.mozilla.org/~acrichton/doc/std/) generated after all these commits were applied, and a double check on issues being closed would be greatly appreciated! I'll also browse the docs a bit and make sure nothing regressed too horribly.
Diffstat (limited to 'src/etc/htmldocck.py')
-rw-r--r--src/etc/htmldocck.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/etc/htmldocck.py b/src/etc/htmldocck.py
index a212e3a0435..2acee8a97f5 100644
--- a/src/etc/htmldocck.py
+++ b/src/etc/htmldocck.py
@@ -186,7 +186,8 @@ def concat_multi_lines(f):
 
         firstlineno = firstlineno or lineno
         if line.endswith('\\'):
-            lastline = line[:-1]
+            if lastline is None:
+                lastline = line[:-1]
             catenated += line[:-1]
         else:
             yield firstlineno, catenated + line