Commits

Georg Brandl  committed 06267ac

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

  • Participants
  • Parent commits ae6437e

Comments (0)

Files changed (2)

 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

File sphinx/roles.py

     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)