Bug 913775

Summary: Support decimals in colwidth & convert exact measures to pixels
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: 3.1CC: aigao, dlackey, dlesage, rlandman, xma
Target Milestone: 3.2   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.2.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-09 04:49:15 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:

Description Ruediger Landmann 2013-02-22 01:48:20 UTC
Description of problem:
When you define a column width in a table using fractions of an inch, Publican ignores the colwidth parameter at transform time and uses a colwidth of 100% instead. The table then does not render properly.

So something like:

<table id="tab.foo"><title>Foo</title>
<tgroup cols="3">
<colspec colnum="1" colname="col1" colwidth="2in" />
<colspec colnum="2" colname="col2" colwidth="1.25in" />
<colspec colnum="3" colname="col3" colwidth="3in" />

is transformed into:

<table summary="Foo"><colgroup><col class="col1" width="2in"><col class="col2" width="100%"><col class="col3" width="3in"></colgroup>

Version-Release number of selected component (if applicable):
3.1

How reproducible:
100%

Steps to Reproduce:
1. Create a table with colwidths defined in fractions of an inch
2. Build in HTML
  
Actual results:
Fractional colwidth replaced by "100%", table badly distorted.

Expected results:
Fractional colwidth used as provided; table rendered appropriately

Additional info:
Workaround is simply to use the proportional "*" notation supported in DocBook, so 2in/1.25in/3in becomes 8*/5*/12*.

Comment 2 Jeff Fearn 🐞 2013-07-08 01:36:17 UTC
*** Bug 815196 has been marked as a duplicate of this bug. ***

Comment 3 HSS Product Manager 2013-07-17 22:57:44 UTC
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.

Comment 4 Jeff Fearn 🐞 2013-07-17 23:32:45 UTC
To ssh://git.fedorahosted.org/git/publican.git
   9f1b666..c1a301f  HEAD -> devel

Comment 5 Tomas Capek 2013-07-22 16:12:38 UTC
Probably works as expected:

$ rpm -q publican
publican-3.1.5-0.fc19.t62.noarch

I tested:
---
<table id="tab.foo"><title>Foo</title>
        <tgroup cols="3">
                <colspec colnum="1" colname="col1" colwidth="1.1in" />
                <colspec colnum="2" colname="col2" colwidth="0.55in" />
                <colspec colnum="3" colname="col3" colwidth="0.75in" />
---

Publican produced:
---
<table summary="Foo"><colgroup><col width="105px" class="col1" /><col width="52px" class="col2" /><col width="72px" class="col3" /></colgroup>
---

Before looking into the source HTML code, the table was displayed at 100% width. I found it was because tables have "width: 100%" defined in Publican's common.css. Once I turned it off, the columns were displayed with their actual width.

Comment 6 Jeff Fearn 🐞 2013-08-09 04:49:15 UTC
The fix for this bug has been shipped in publican 3.2.0