From: <gr...@us...> - 2011-09-17 12:04:42
|
Author: grubert Date: 2011-09-17 14:04:34 +0200 (Sat, 17 Sep 2011) New Revision: 7127 Modified: trunk/docutils/HISTORY.txt trunk/docutils/docutils/parsers/rst/states.py Log: Fix parse_option_marker for options arguments containing ``=``. Modified: trunk/docutils/HISTORY.txt =================================================================== --- trunk/docutils/HISTORY.txt 2011-09-16 19:24:51 UTC (rev 7126) +++ trunk/docutils/HISTORY.txt 2011-09-17 12:04:34 UTC (rev 7127) @@ -22,6 +22,8 @@ - reStructuredText "code" role and directive with syntax highlighting by Pygments_. + - Fix parse_option_marker for options arguments containing ``=``. + .. _Pygments: http://pygments.org/ * docutils/writers/latex2e/__init__.py Modified: trunk/docutils/docutils/parsers/rst/states.py =================================================================== --- trunk/docutils/docutils/parsers/rst/states.py 2011-09-16 19:24:51 UTC (rev 7126) +++ trunk/docutils/docutils/parsers/rst/states.py 2011-09-17 12:04:34 UTC (rev 7127) @@ -1495,7 +1495,7 @@ for optionstring in optionstrings: tokens = optionstring.split() delimiter = ' ' - firstopt = tokens[0].split('=') + firstopt = tokens[0].split('=', 1) if len(firstopt) > 1: # "--opt=value" form tokens[:1] = firstopt |