[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [BUG][ODT] ODT_STYLES_FILE not read as a list
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [BUG][ODT] ODT_STYLES_FILE not read as a list |
Date: |
Sun, 04 Nov 2018 23:05:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
Christian Moe <address@hidden> writes:
> It seems the ODT exporter currently fails to read the ODT_STYLES_FILE
> option as a list, as in this example from the manual
> ([[info:org#Applying custom styles]]):
>
> #+ODT_STYLES_FILE: ("/path/to/file.ott" ("styles.xml" "image/hdr.png"))
>
> This is needed if you want a complex style with e.g. an image in the
> header.
>
> Exporting this causes an "Invalid specification of styles.xml file"
> error on my recent ELPA version. The problem seems to be that the option
> is treated as a string and never tested to see if it contains a list.
>
> To reproduce the problem, place the attached documents
> odt-styles-test.org and odt-test-styles.odt in the same directory, then
> export odt-styles-test.org to ODT. The result should have a unicorn in
> the letterhead.
>
> The below quick-and-dirty patch seems to fix it, but I'm sure there's a
> better approach.
Thank you. I applied your patch with an additional check: the value should
be enclosed within round brackets.
Regards,
--
Nicolas Goaziou
- Re: [O] [BUG][ODT] ODT_STYLES_FILE not read as a list,
Nicolas Goaziou <=
- Re: [O] [BUG][ODT] ODT_STYLES_FILE not read as a list, Christian Moe, 2018/11/05
- Re: [O] [BUG][ODT] ODT_STYLES_FILE not read as a list, L.C. Karssen, 2018/11/06
- Re: [O] [BUG][ODT] ODT_STYLES_FILE not read as a list, Christian Moe, 2018/11/06
- Re: [O] [BUG][ODT] ODT_STYLES_FILE not read as a list, L.C. Karssen, 2018/11/06
- Re: [O] [BUG][ODT] ODT_STYLES_FILE not read as a list, Christian Moe, 2018/11/07
- Re: [O] [BUG][ODT] ODT_STYLES_FILE not read as a list, L.C. Karssen, 2018/11/07
- Re: [O] [BUG][ODT] ODT_STYLES_FILE not read as a list, Nicolas Goaziou, 2018/11/10
- Re: [O] [BUG][ODT] ODT_STYLES_FILE not read as a list, L.C. Karssen, 2018/11/19
- Re: [O] [BUG][ODT] ODT_STYLES_FILE not read as a list, Nicolas Goaziou, 2018/11/19