|
From: SourceForge.net <no...@so...> - 2006-03-28 00:29:06
|
Patches item #1459707, was opened at 2006-03-27 19:29 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=422032&aid=1459707&group_id=38414 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Edward Loper (edloper) Assigned to: Nobody/Anonymous (nobody) Summary: Fix custom inline roles for latex wirter Initial Comment: As of svn revision 4447, the latex writer does not correctly support custom inline roles. In particular, if I define a new role using: .. role:: newrole :class: newroleclass Then "newroleclass" will be stored as a one-element list in the "classes" attribute; but the latex writer expects to find a value in the "class" attribute. So it ends up generating: \docutilsroleNone{...} The attached patch fixes this by changing the latex writer's visit_inline() method to use the first element of the "classes" attribute if the "class" attribute is undefined. It may be that there's a better way to fix this -- e.g., if there are multiple classes, then perhaps visit_inline() should generate multiple latex markup commands, rather than just ignoring all but the first role. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=422032&aid=1459707&group_id=38414 |