Fix the `abbr` role when the abbreviation has newlines in it.

This commit is contained in:
Georg Brandl 2011-09-23 10:40:18 +02:00
parent 01f45a12c7
commit 757d0013a7
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
Release 1.0.8 (Sep 23, 2011)
============================
* Fix the ``abbr`` role when the abbreviation has newlines in it.
* #727: Fix the links to search results with custom object types.
* #648: Fix line numbers reported in warnings about undefined

View File

@ -259,7 +259,7 @@ def emph_literal_role(typ, rawtext, text, lineno, inliner,
return [retnode], []
_abbr_re = re.compile('\((.*)\)$')
_abbr_re = re.compile('\((.*)\)$', re.S)
def abbr_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
text = utils.unescape(text)