Bug 718717
Summary: | enabling line numbering disables code highlighting | |||
---|---|---|---|---|
Product: | [Community] Publican | Reporter: | Jeff Fearn 🐞 <jfearn> | |
Component: | publican | Assignee: | Jeff Fearn 🐞 <jfearn> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Lopes <mlopes> | |
Severity: | medium | Docs Contact: | ||
Priority: | low | |||
Version: | 2.5 | CC: | ddomingo, jfearn, Klaus.Malorny, rlandman | |
Target Milestone: | 4.2 | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 4.2.0 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 653432 | |||
: | 1133733 (view as bug list) | Environment: | ||
Last Closed: | 2014-09-01 03:40:26 UTC | Type: | --- | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1133733 |
Description
Jeff Fearn 🐞
2011-07-04 11:57:32 UTC
I've cloned this bug to separate the line numbering and sql escaping (653432) from the line numbering + highlighting not working (this bug). HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED. Well I spent most of the day on this and although I can point to the XSL where this is triggered I am no closer to solving it. In the upstream verbatim.xsl in template match="programlisting|screen|synopsis" when using line numbers the apply-highlighting template is called and the results stored in a variable. It is that storing in the variable that seems to be the problem. If you just call the highlighting template, works fine, but if you try and store the result in a variable it uses the original node and not the transformed one. Of course without storing the result in a variable you can't pass on the modified content to the line numbering routine. I've got this working for DocBook 5. To ssh://git.fedorahosted.org/git/publican.git 7a118a9..f84ff5c devel -> devel Verified. Confirmed that syntax highlighting works using the common-db5 brand. Raised BZ#1133733 for the RH brand. A fix for this shipped in Publican 4.2.0. |