Description
If a table is created with a width specification like so:
A |
B |
||<tablestyle="width: 80%"> A||B||
and the page is exported as DocBook, the tgroup element will not have the number of columns specified and the table element will have the incorrect number of columns specified. You will see this:
<table cols="1"> <caption/> <tgroup>
instead of this:
<table> <caption/> <tgroup cols="2">
which you get for this table:
A |
B |
||A||B||
Without the width specification, the tgroup element is correct.
Note that only the tgroup element missing the number of columns seems to break anything.
Steps to reproduce
- Create a page with a table with a width specification (like this one).
Export table as DocBook.
- You should see that the number of columns for the table and tgroup elements are incorrect.
Example
Just render this page as DocBook.
Details
MoinMoin Version |
1.53 |
OS and Version |
FreeBSD 4.11-RELEASE-p11 |
Python Version |
2.4.1 |
Server Setup |
? |
Server Details |
? |
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
Don't specify table widths.
Discussion
Plan
This will be partially fixed, ie. the handling of width will not be implemented, but it will no longer result in invalid code. This will be done on the docbook branch, set for inclusion in version 1.6. This bug is now a feature request until the width attribute is supported (in the new code).
Tables will get a complete rewrite in the docbook branch, and adding support for width should become easier.
- Priority: low
Assigned to: MikkoVirkkilä
- Status: no longer causes error, width unsupported