org-mode/lisp
Carsten Dominik ef51006a8f HTML export: Fix alignment bug
Patch by Stephen Peters.

Stephen writes:

> When creating a table, I was noticing that the
> <colgroup><col>... provides useful alignment information based on
> whether or not the column has numbers in it.  I think, however, that
> there is a mistake in this routine.  Take, for example, the following
> table:
>
> |  Id | Task         | Developer | Estimate | Spent | Remaining | Comp.% | Updated         |
> |-----+--------------+-----------+----------+-------+-----------+--------+-----------------|
> |   1 | Task One     | SLP       |        1 |     0 |         1 |      0 | SLP, 2010-04-27 |
> |   2 | Task Two     | SLP       |        1 |     0 |         1 |      0 | SLP, 2010-04-27 |
> |   3 | Task Three   | SLP       |        2 |     0 |         2 |      0 | SLP, 2010-04-27 |
> |   4 | Task Four    | SLP       |        2 |     0 |         2 |      0 | SLP, 2010-04-27 |
> |   5 | Task Five    | SLP       |      .25 |     0 |      0.25 |      0 | SLP, 2010-04-27 |
> | 5.1 | Another Task | XML team  |        0 |     1 |         0 |      0 | SLP, 2010-04-27 |
> |   6 | Task Six     | SLP       |      .25 |     0 |      0.25 |      0 | SLP, 2010-04-27 |
> | 6.1 | More Tasks   | DB team   |        3 |     0 |         3 |      0 | SLP, 2010-04-27 |
> |   7 | Task Seven   | SLP       |        3 |     0 |         3 |      0 | SLP, 2010-04-27 |
>
> When the colgroup list is created for this table, it reads:
>
> <colgroup><col align="right" /><col align="left" /><col align="left" /><col align="right" /><col align="right" /><col align="left" /><col align="left" /><col align="left" />
> </colgroup>
>
> Note that the first columns are correct, but the last few are not.  It
> should read right, left, left, right, right, right, right, left.
>
> I believe that this is due to the (< i nline) comparison within
> org-format-org-table-html, which is nonsensical because it's trying to
> compare a column number with a number of rows.  I've attached a patch
> for the problem.
2010-04-29 15:01:10 +02:00
..
ChangeLog HTML export: Fix alignment bug 2010-04-29 15:01:10 +02:00
ChangeLog.01 Move the older ChangeLog entries 2010-04-14 10:31:18 +02:00
org-agenda.el Push a mark before the agenda can move point in a buffer 2010-04-27 12:00:03 +02:00
org-archive.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-ascii.el Implement list starter cookies also in Org-mode, and for ASCII export 2010-04-26 16:35:23 +02:00
org-attach.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-bbdb.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-beamer.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-bibtex.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-clock.el Make sure clock mode line display is removed when there is not clock 2010-04-26 00:02:49 +02:00
org-colview-xemacs.el Overlay changes for org-colview-xemacs.el 2010-04-18 16:50:12 +02:00
org-colview.el More work on simplifying compatibility code 2010-04-21 09:18:12 +02:00
org-compat.el Use (featurep 'xemacs) to help the byte compiler 2010-04-22 15:30:12 +02:00
org-crypt.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-ctags.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-datetree.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-docbook.el Docbook export: Implement ordered lists with offset 2010-04-27 06:58:48 +02:00
org-docview.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-entities.el Use \land and \lor for logical operators 2010-04-23 17:22:07 +02:00
org-exp-blocks.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-exp.el Automatically remove lines with formatting cookies when exporting tables 2010-04-28 08:49:35 +02:00
org-faces.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-feed.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-footnote.el Fix typos and add customization group for footnotes 2010-04-27 08:11:16 +02:00
org-freemind.el Silence compiler about called-interactively 2010-04-18 16:49:36 +02:00
org-gnus.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-habit.el Require calendar already on top level in org.el 2010-04-18 16:50:13 +02:00
org-html.el HTML export: Fix alignment bug 2010-04-29 15:01:10 +02:00
org-icalendar.el Add a description attribute to an exported iCal file. 2010-04-28 17:00:40 +02:00
org-id.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-indent.el Turn off indent-tabs-mode when org-indent-mode is on 2010-04-26 06:58:21 +02:00
org-info.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-inlinetask.el Fix typo 2010-04-21 09:18:20 +02:00
org-irc.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-jsinfo.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-latex.el LaTeX export: Fix bug with export of x^{(0)} 2010-04-28 17:21:41 +02:00
org-list.el Fix a bug with item demotion 2010-04-27 07:57:22 +02:00
org-mac-message.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-macs.el Redefine the functions where XEmacs invisibility has to be turned off 2010-04-18 19:58:24 +02:00
org-mew.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-mhe.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-mobile.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-mouse.el Simplify XEmacs key bindings 2010-04-21 08:38:09 +02:00
org-plot.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-protocol.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-publish.el Fix typos 2010-04-24 02:17:07 +02:00
org-remember.el Fix some typos 2010-04-16 08:17:57 +02:00
org-rmail.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-src.el org-src: different message in read-only mode 2010-04-23 10:10:01 -06:00
org-table.el Automatically remove lines with formatting cookies when exporting tables 2010-04-28 08:49:35 +02:00
org-timer.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-vm.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-w3m.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org-wl.el Get rid of some compiler warnings 2010-04-18 16:49:58 +02:00
org-xoxo.el Push version number to 6.35trans 2010-04-15 12:24:55 +02:00
org.el Make the inclusion of packages for snippet creation optional 2010-04-27 07:44:14 +02:00