emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: odt table exporter bug with rel-width [8.2.1 (8.2.1-30-g757f00-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)]
@ 2013-11-04 21:40 Derek Feichtinger
  2013-11-05 15:32 ` Jambunathan K
  2013-11-05 16:28 ` Bastien
  0 siblings, 2 replies; 3+ messages in thread
From: Derek Feichtinger @ 2013-11-04 21:40 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1576 bytes --]

Dear developers

When exporting a document containing a table and using the :rel-width
modifier (as documented in [info:org#Tables in ODT export]), an error is
returned:

     #+ATTR_ODT: :rel-width 50
     | Area/Month    |   Jan |   Feb |   Mar |   Sum |
     |---------------+-------+-------+-------+-------|
     | /             |     < |       |       |     < |
     | <l13>         |  <r5> |  <r5> |  <r5> |  <r6> |
     | North America |     1 |    21 |   926 |   948 |
     | Middle East   |     6 |    75 |   844 |   925 |
     | Asia Pacific  |     9 |    27 |   790 |   826 |
     |---------------+-------+-------+-------+-------|
     | Sum           |    16 |   123 |  2560 |  2699 |

OpenDocument export failed: Format specifier doesn't match argument type

Reason is that the plist-get in line 1458 of ox-odt.el returns a string
reprensentation "50" of the :rel-width number, but the
org-odt-table-style-format
variable contains a %d conversion string for this parameter.

      (loop for (style-name props) in
    (plist-get org-odt-automatic-styles 'Table) do
    (when (setq props (or (plist-get props :rel-width) 96))
      (insert (format org-odt-table-style-format style-name props))))

Either the conversion string should be changed to a %s or the plist-get
obtained value should get converted to a string.

Emacs  : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2013-10-03 on hamsa, modified by Debian
Package: Org-mode version 8.2.1 (8.2.1-30-g757f00-elpaplus @
/home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)

Best regards
Derek

[-- Attachment #2: Type: text/html, Size: 2217 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: odt table exporter bug with rel-width [8.2.1 (8.2.1-30-g757f00-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)]
  2013-11-04 21:40 Bug: odt table exporter bug with rel-width [8.2.1 (8.2.1-30-g757f00-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)] Derek Feichtinger
@ 2013-11-05 15:32 ` Jambunathan K
  2013-11-05 16:28 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Jambunathan K @ 2013-11-05 15:32 UTC (permalink / raw)
  To: Derek Feichtinger; +Cc: emacs-orgmode


Please use ox-odt.el from here.  The version in my private repo has the
fix.  

http://repo.or.cz/w/org-mode/org-kjn.git

NB: Just download the file.  Don't do a git checkout (Because I keep
rebasing it)

Derek Feichtinger <dfeich@gmail.com> writes:

> Dear developers
>
> When exporting a document containing a table and using the :rel-width
> modifier (as documented in [info:org#Tables in ODT export]), an error
> is returned:
>
> #+ATTR_ODT: :rel-width 50
> | Area/Month | Jan | Feb | Mar | Sum |
> |---------------+-------+-------+-------+-------|
> | / | < | | | < |
> | <l13> | <r5> | <r5> | <r5> | <r6> |
> | North America | 1 | 21 | 926 | 948 |
> | Middle East | 6 | 75 | 844 | 925 |
> | Asia Pacific | 9 | 27 | 790 | 826 |
> |---------------+-------+-------+-------+-------|
> | Sum | 16 | 123 | 2560 | 2699 |
>
> OpenDocument export failed: Format specifier doesn't match argument
> type
>
> Reason is that the plist-get in line 1458 of ox-odt.el returns a
> string
> reprensentation "50" of the :rel-width number, but the
> org-odt-table-style-format
> variable contains a %d conversion string for this parameter.
>
> (loop for (style-name props) in
> (plist-get org-odt-automatic-styles 'Table) do
> (when (setq props (or (plist-get props :rel-width) 96))
> (insert (format org-odt-table-style-format style-name props))))
>
> Either the conversion string should be changed to a %s or the
> plist-get
> obtained value should get converted to a string.
>
> Emacs : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2)
> of 2013-10-03 on hamsa, modified by Debian
> Package: Org-mode version 8.2.1 (8.2.1-30-g757f00-elpaplus @
> /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)
>
> Best regards
> Derek

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: odt table exporter bug with rel-width [8.2.1 (8.2.1-30-g757f00-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)]
  2013-11-04 21:40 Bug: odt table exporter bug with rel-width [8.2.1 (8.2.1-30-g757f00-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)] Derek Feichtinger
  2013-11-05 15:32 ` Jambunathan K
@ 2013-11-05 16:28 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2013-11-05 16:28 UTC (permalink / raw)
  To: Derek Feichtinger; +Cc: emacs-orgmode

Hi Derek,

Derek Feichtinger <dfeich@gmail.com> writes:

> When exporting a document containing a table and using the :rel-width
> modifier (as documented in [info:org#Tables in ODT export]), an error
> is returned:

This is fixed now, thanks.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-05 16:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-04 21:40 Bug: odt table exporter bug with rel-width [8.2.1 (8.2.1-30-g757f00-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)] Derek Feichtinger
2013-11-05 15:32 ` Jambunathan K
2013-11-05 16:28 ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).