muse-publish: Support orgtbl-mode style tables
commit5ce6f631cbb8edbcf3bf08ec91d51307b44028a5
authorMichael Olson <mwolson@gnu.org>
Wed, 30 May 2007 17:27:07 +0000 (30 17:27 +0000)
committerMichael Olson <mwolson@gnu.org>
Wed, 30 May 2007 17:27:07 +0000 (30 17:27 +0000)
treea4cd383520b43e26b16cf515e84b2f1ab6b8dd23
parent41a479d145f76d86b51d716540b94a03b90d339b
muse-publish: Support orgtbl-mode style tables

2007-05-30  Michael Olson  <mwolson@gnu.org>

* NEWS: Update.

* lisp/muse-latex.el (muse-latex-markup-table): Deal with
horizontal separators in tables.

* lisp/muse-publish.el (muse-publish-markup-regexps): Recognize
horizontal separators in tables.
(muse-publish-trim-table): New function to remove initial and
final blank columns from a table.
(muse-publish-table-fields): Call `muse-publish-trim-table'.  Deal
with horizontal separators, aka "hlines".

* lisp/muse-regexps.el (muse-table-hline-regexp): New regexp that
defines the syntax of a horizontal separator in a table.

* lisp/muse-texinfo.el (muse-texinfo-markup-table): Deal with
horizontal separators.  Publish header lines correctly.

* lisp/muse-xml-common.el (muse-xml-sort-table): Deal with case
where we have nonnumbers as a row type.  This ignores sorting for
hlines.
(muse-xml-markup-table): Deal with horizontal separators.  If the
markup supports table groups, make hlines separate table groups.
Otherwise, ignore them, since they cannot be marked up.  Together,
these changes allow us to support orgtbl-mode tables.  Thanks to
Carsten Dominik for the suggestion.
git-archimport-id: mwolson@gnu.org--2006/muse--main--1.0--patch-326
ChangeLog
NEWS
lisp/muse-latex.el
lisp/muse-publish.el
lisp/muse-regexps.el
lisp/muse-texinfo.el
lisp/muse-xml-common.el