Bug 847206 - <p/> renders with content outside tags
<p/> renders with content outside tags
Product: Publican
Classification: Community
Component: publican (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: 3.1
: ---
Assigned To: Jeff Fearn
Depends On:
  Show dependency treegraph
Reported: 2012-08-10 01:33 EDT by Joshua Wulf
Modified: 2014-10-19 19:01 EDT (History)
4 users (show)

See Also:
Fixed In Version: 3.1.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-02-05 22:40:38 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joshua Wulf 2012-08-10 01:33:37 EDT
Description of problem:

Publican 3 renders <para> content outside <p/> tag in HTML output.

To Reproduce:

publican create --name test
cd test
publican build --formats=html-single --langs=en-US

open tmp/en-US/html-single/index.html

Examine source.

Actual Result:

<div class="para"><p></p>
			This is a test paragraph in a section

Expected Result:

<div class="para"><p>This is a test paragraph in a section</p>
Comment 1 Jeff Fearn 2012-08-17 02:55:12 EDT
This will produce invalid HTML due to the way content can be nested in DocBook.


<div class="para">
 This is a test paragraph in a section
 <div class="this could be a table">

We could remove the <p/> if it's causing problems.
Comment 2 Jeff Fearn 2012-08-17 02:56:05 EDT
Added DOCTYPE to intermediate XML file.

To ssh://git.fedorahosted.org/git/publican.git
   dffbfa2..621c7b9  master -> master
Comment 3 Jeff Fearn 2012-08-17 02:57:33 EDT
Ignore comment 2, wrong bug :(
Comment 4 Jeff Fearn 2012-11-06 21:37:05 EST
Remove the P?
Comment 5 Joshua Wulf 2012-11-07 00:12:40 EST
That would seem to make the most sense. If it can't be reliably used to wrap the content, then it's spurious.
Comment 6 Jeff Fearn 2013-01-07 19:04:44 EST
This fix has been committed to the devel branch for inclusion in Publican 3.1.
Comment 7 xuezhi ma 2013-01-31 01:17:37 EST
Verify version: publican-3.1.0-0.el6eng.noarch -> PASS

Verify steps:
1. $publican create --name=test
2. $cd test/
3. $publican build --formats=html-single --langs=en-US
4. Check the style of "this is a test paragraph" in Chapter1

Actual results:
<p> and </p> are removed

Note You need to log in before you can comment on or make changes to this bug.