mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix the `abbr
` role when the abbreviation has newlines in it.
This commit is contained in:
parent
01f45a12c7
commit
757d0013a7
2
CHANGES
2
CHANGES
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user