Bug 773120

Summary: <para> tags are ignored on txt format
Product: [Community] Publican Reporter: Tomas Dabašinskas <tdabasin>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: Ruediger Landmann <rlandman+disabled>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.8CC: mhusnain, mmcallis, rlandman+disabled, rlandman
Target Milestone: 3.0   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-31 03:11:41 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:
Attachments:
Description Flags
test book none

Description Tomas Dabašinskas 2012-01-11 00:21:09 UTC
Created attachment 551974 [details]
test book

Description of problem:
When I build txt report any new paragraphs are ignored and content is pasted in single line, breaking only when page width exceeded. This works fine for html, html-single and pdf report (haven't tested on epub)

Version-Release number of selected component (if applicable):
version=2.8

How reproducible:
Build txt report

Steps to Reproduce:
1. publican build --formats=txt --langs=en-US
  
Actual results:
This is a test paragraph This is another test paragraph

Expected results:
This is a test paragraph
This is another test paragraph

Additional info:

<chapter>
	<title>Test Chapter</title>
	<para>
		This is a test paragraph
	</para>
        <para>
                This is another test paragraph
        </para>
</chapter>

Comment 1 Ruediger Landmann 2012-03-12 23:48:53 UTC
I can reproduce this in publican-2.8-1.fc16

Moving upstream.

Comment 2 Jeff Fearn 🐞 2012-03-15 04:04:41 UTC
This is due to us changing the para tag from P to DIV. Using P allows invalid HTML generation due to nesting. Added work around for txt output.

Pushed To ssh://git.fedorahosted.org/git/publican.git
   c3ba47b..8d1c0c5  master -> master

Comment 3 Misha H. Ali 2012-04-22 21:06:25 UTC
Confirmed text between one pair of para tags appears as a single paragraph and subsequent paras appear as different paragraphs.

OS: Fedora 16
Publican: 3.0
Release designation: publican-3.0-0.fc16.t166.src.rpm