Permalink
Browse files

Worked around edge-case docutils bug.

  • Loading branch information...
1 parent 924f0e1 commit 487f33e8300d664c9d2535a5e725c2f1c831371f @tav committed Feb 4, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 docutils/parsers/rst/states.py
@@ -1553,7 +1553,10 @@ def line_block_line(self, match, lineno):
def nest_line_block_lines(self, block):
for index in range(1, len(block)):
- if block[index].indent is None:
+ # tav -- the indent attribute isn't always set
+ # if block[index].indent is None:
+ if ((not hasattr(block[index], 'indent'))
+ or block[index].indent is None):
block[index].indent = block[index - 1].indent
self.nest_line_block_segment(block)

0 comments on commit 487f33e

Please sign in to comment.