|
@@ -140,6 +140,8 @@ def strip_divs(body, start=None, end=None):
|
|
if div_start != len(body_lines):
|
|
if div_start != len(body_lines):
|
|
raise ValueError("parsing error: didn't find the end of the div")
|
|
raise ValueError("parsing error: didn't find the end of the div")
|
|
|
|
|
|
|
|
+ L = L[1:]
|
|
|
|
+
|
|
body_lines = sum(L[start:end], [])
|
|
body_lines = sum(L[start:end], [])
|
|
|
|
|
|
return body[:1] + body_lines + body[-1:]
|
|
return body[:1] + body_lines + body[-1:]
|