option directive also allows all punctuations for the option name (refs: #3366)

This commit is contained in:
Takeshi KOMIYA
2017-02-15 02:01:01 +09:00
parent c62a0ad765
commit baa065f706
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -13,6 +13,7 @@ Incompatible changes
* LaTeX positioned long tables horizontally centered, and short ones
flushed left (no text flow around table.) The position now defaults to center in
both cases, and it will obey Docutils 0.13 ``:align:`` option (refs #3415, #3377)
* option directive also allows all punctuations for the option name (refs: #3366)
Features removed
----------------
+1 -1
View File
@@ -45,7 +45,7 @@ logger = logging.getLogger(__name__)
# RE for option descriptions
option_desc_re = re.compile(r'((?:/|--|-|\+)?[-+\.?@#_a-zA-Z0-9]+)(=?\s*.*)')
option_desc_re = re.compile(r'((?:/|--|-|\+)?[^\s=]+)(=?\s*.*)')
# RE for grammar tokens
token_re = re.compile('`(\w+)`', re.U)