Red Hat Bugzilla – Bug 1014452
Regression: Inline tags in <abstract>s are escaped and rendered as text
Last modified: 2013-10-17 19:45:22 EDT
Description of problem:
Inline tags that are children of <abstract> get processed as plain text when built into the Book_Info.xml file
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Specify an inline tag in the "Abstract:" parameter of a topic map. For example:
Abstract: The <citetitle>Foo Guide</title> describes how you...
This gets built into the Book_Info.xml file as:
The <citetitle>Foo Guide</citetitle> describes how you
and rendered in HTML as:
The <citetitle>Foo Guide</title> describes how you...
Inline tags are not escaped and render properly.
This used to work and there are a few people using it already so I'm marking this as a regression.
Fixed in 1.2-SNAPSHOT, Build 201310091335
This was caused by the work we did in 1.0 to escape values so that they can be used in XML, as previously using characters such as "&" would have cause a validation error. I've updated abstract so that it will ignore xml elements and only escape < or > when they are on their own.
Tested with invalid XML. Publican throws and error about mismatched tags. Ideally we should have some kind of validation in the CCMS for this, but I think a Publican validation error is sufficient for now.
Abstract = This <citetitle>Foo Guide</citetitle> represents the <emphasis>workflows</emphasis> and methods which generate the best results for <application>CCMS-generated</application> documentation, and should be used as the first point of guidance for using PressGang CCMS
Abstract was displayed correctly.