[Structuredtext-checkins] CVS: restructuredtext/restructuredtext states.py,1.50,1.51
Status: Pre-Alpha
Brought to you by:
goodger
From: David G. <go...@us...> - 2002-04-18 02:46:54
|
Update of /cvsroot/structuredtext/restructuredtext/restructuredtext In directory usw-pr-cvs1:/tmp/cvs-serv13726/restructuredtext/restructuredtext Modified Files: states.py Log Message: Fixed option list bug. Index: states.py =================================================================== RCS file: /cvsroot/structuredtext/restructuredtext/restructuredtext/states.py,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** states.py 13 Apr 2002 16:43:53 -0000 1.50 --- states.py 18 Apr 2002 02:46:51 -0000 1.51 *************** *** 109,119 **** - __all__ = ['RSTStateMachine', 'MarkupError', 'ParserError', - 'TransformationError'] - - class MarkupError(Exception): pass class ParserError(Exception): pass - class TransformationError(Exception): pass --- 109,114 ---- *************** *** 1056,1060 **** """Option list item.""" optionlist = nodes.option_list() - self.statemachine.node += optionlist try: listitem, blankfinish = self.option_list_item(match) --- 1051,1054 ---- *************** *** 1071,1074 **** --- 1065,1069 ---- self.statemachine.node += self.unindentwarning() return [], nextstate, [] + self.statemachine.node += optionlist optionlist += listitem offset = self.statemachine.lineoffset + 1 # next line *************** *** 1087,1090 **** --- 1082,1087 ---- indented, indent, lineoffset, blankfinish = \ self.statemachine.getfirstknownindented(match.end()) + if not indented: # not an option list item + raise statemachine.TransitionCorrection('text') option_group = nodes.option_group('', *options) description = nodes.description('\n'.join(indented)) |