When using the abbr role with HTML output, a newline is inserted
inappropriately in the "abbr" element after the text. An example where
this produces incorrect output is "(:abbr:`TLA (Three Letter Acronym)`)".
The output will show the abbreviation in parentheses with a leading space
like "( TLA)" because of the newline that's added.
Admittedly this is unusual, putting an abbreviation inside parentheses, but
I doubt it can be called wrong. It's a fairly trivial issue, but I think
it might be an indication of other similar problems because of how the
starttag() routine works. It has a default argument suffix='\n', and few
things in writers/html.py override that. A fix for this particular bug is
to add suffix='' to the self.starttag() call in
writers.html.visit_abbreviation().
David Goodger
None
None
Public
|
Date: 2009-07-16 15:08 My bad, the problem is in the Sphinx visit_abbreviation() routine, not in |
|
Date: 2009-07-16 14:53 I cannot reproduce this issue. |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Pending | 2009-07-16 15:08 | phansen |
| allow_comments | 1 | 2009-07-16 15:08 | phansen |
| close_date | 2009-07-16 14:53 | 2009-07-16 15:08 | phansen |
| status_id | Open | 2009-07-16 14:53 | goodger |
| close_date | - | 2009-07-16 14:53 | goodger |
| resolution_id | None | 2009-07-16 14:53 | goodger |
| assigned_to | nobody | 2009-07-16 14:53 | goodger |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use