Red Hat Bugzilla – Bug 977581
Empty topics with two lines result in invalid content warning in docbuilder
Last modified: 2013-06-28 01:34:08 EDT
Empty topics that have been created with the CSProcessor but as yet don't have any XML content should be replaced with a warning that there is no XML content for that topic. However, when topics have two empty lines (for whatever reason) the empty content is replaced with a warning that the topic includes invalid topics.
This makes it difficult to check and fix invalid topics, and presents problems when showing early drafts to SMEs.
Verified and fixed in 0.33.0.
The problem comes from the way the builder checks if the XML field is empty. It used to do this by just checking if the XML field was null or had no content at all. Now I've updated it to trim it down by removing any whitespace (ie new lines, spaces, tabs, etc...) before it does the "no content" check.
0.33.0 has now been released.
Verified. Thanks Lee.