Bug 913775 - Support decimals in colwidth & convert exact measures to pixels
Summary: Support decimals in colwidth & convert exact measures to pixels
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 3.2
Assignee: Jeff Fearn 🐞
QA Contact: tools-bugs
URL:
Whiteboard:
: 815196 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-22 01:48 UTC by Ruediger Landmann
Modified: 2013-08-09 04:49 UTC (History)
5 users (show)

Fixed In Version: 3.2.0
Clone Of:
Environment:
Last Closed: 2013-08-09 04:49:15 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 893776 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 893776

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


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