Bug 1018796

Summary: Publican includes XML tags from <abstract> in %description and %post
Product: [Community] Publican Reporter: Ruediger Landmann <rlandman>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: futureCC: aigao, rlandman, tcapek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-19 02:46:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Sample Book_Info.xml file
none
Sample spec file none

Description Ruediger Landmann 2013-10-14 12:25:20 UTC
Created attachment 811973 [details]
Sample Book_Info.xml file

Description of problem:
When Publican packages a book, it uses the information from the book's <abstract> to populate the %description and %post sections of the book's spec file

Version-Release number of selected component (if applicable):
publican-3.9.9-0.fc19.t6.noarch

How reproducible:
100%

Steps to Reproduce:
1. Package any book

Actual results:
The entire abstract, including the <abstract> tags itself, and any child tags are included in the %description and %post sections of the spec file

Expected results:
Publican only uses the text from the abstract

Additional info:

Comment 1 Ruediger Landmann 2013-10-14 12:26:10 UTC
Created attachment 811976 [details]
Sample spec file

Comment 2 HSS Product Manager 2013-10-15 00:47:33 UTC
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.

Comment 3 Jeff Fearn 🐞 2013-10-15 00:55:37 UTC
To ssh://git.fedorahosted.org/git/publican.git
   623a7e0..d084e0b  HEAD -> devel

Comment 4 Tomas Capek 2013-10-16 14:24:16 UTC
Does not seem to work:

rpm -q publican
publican-3.9.9-0.fc19.t6.noarch

~/Red-Hat-Books/RHEL7-Security_Guide$ publican package --lang en-US

vim tmp/rpm/Red_Hat_Enterprise_Linux-Security_Guide-7-web-en-US.spec

I can still see DocBook markup in both %description and %post sections.

Am I doing something wrong?

Comment 5 Jeff Fearn 🐞 2013-10-16 23:10:22 UTC
git pull? The version I'm testing is publican-3.9.9-0.el6.t7.noarch and it works for the Users Guide.

If you update and it doesn't work please provide a link to the book source so I can test on that book.

Comment 6 Ruediger Landmann 2013-10-16 23:23:37 UTC
Verified in publican-3.9.9-0.fc19.t7.noarch