emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Baptiste <bateast@bat.fr.eu.org>
To: emacs-orgmode@gnu.org
Subject: ODT exporter does not seem to respect quotation mark for list items
Date: Wed, 23 Jul 2014 11:23:52 +0200	[thread overview]
Message-ID: <877g34h1hz.fsf@vm_arch_64.bat.fr.eu.org> (raw)

Hi,

I do not manage to get all my lists correctly exported in odt. The main point seems the respect of quotation marks …

See example below.

Thank you,

-- 
~^v^~ Baptiste

-----

#+TITLE: Test for lists in quotes and Odt export
#+AUTHOR: Baptiste
#+DATE: 2014-07-23

* Rational

  =ODT= exporter does not seem to manage quotation style for lists (may be other elements).

  : org-mode 8.3.15.g2241054 (git)

* Org source

  #+BEGIN_QUOTE
  This is a quotation text, with a list inside
  - First item
    1. sub item
    2. second sub-item
  - Second item
    
  Text in quote after the list
  #+END_QUOTE

  I am now out of quote

* From odt file, =content.xml=

  The list is made out of /Quotation/ style, then back to normal margin and so on.
  
  #+BEGIN_SRC xml
    <text:bookmark text:name="sec-2"/>Org source
    <text:bookmark-end text:name="OrgXref.sec-2"/></text:h>
    <text:p text:style-name="Quotations">This is a quotation text, with a list inside
    </text:p>

    <text:list text:style-name="OrgBulletedList" text:continue-numbering="false">

      <text:list-item>

        <text:p text:style-name="Text_20_body">First item
        </text:p>

        <text:list text:style-name="OrgNumberedList" text:continue-numbering="true">

          <text:list-item>

            <text:p text:style-name="Text_20_body">sub item
            </text:p>

          </text:list-item>

          <text:list-item>

            <text:p text:style-name="Text_20_body">second sub-item
            </text:p>

          </text:list-item>
        </text:list>

      </text:list-item>

      <text:list-item>

        <text:p text:style-name="Text_20_body">Second item
        </text:p>

      </text:list-item>
    </text:list>


    <text:p text:style-name="Quotations">Text in quote after the list
    </text:p>


    <text:p text:style-name="Text_20_body">I am now out of quote
    </text:p>

  #+END_SRC

* What I would expect

  I would expect the /Quotation/ style to be respected even in list item, something like :
  
  #+BEGIN_SRC xml
    <text:bookmark text:name="sec-2"/>Org source
    <text:bookmark-end text:name="OrgXref.sec-2"/></text:h>
    <text:p text:style-name="Quotations">This is a quotation text, with a list inside
    </text:p>

    <text:list text:style-name="OrgBulletedList" text:continue-numbering="false">

      <text:list-item>

        <text:p text:style-name="Quotations">First item
        </text:p>

        <text:list text:style-name="OrgNumberedList" text:continue-numbering="true">

          <text:list-item>

            <text:p text:style-name="Quotations">sub item
            </text:p>

          </text:list-item>

          <text:list-item>

            <text:p text:style-name="Quotations">second sub-item
            </text:p>

          </text:list-item>
        </text:list>

      </text:list-item>

      <text:list-item>

        <text:p text:style-name="Quotations">Second item
        </text:p>

      </text:list-item>
    </text:list>


    <text:p text:style-name="Quotations">Text in quote after the list
    </text:p>


    <text:p text:style-name="Text_20_body">I am now out of quote
    </text:p>

  #+END_SRC

             reply	other threads:[~2014-07-23  9:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-23  9:23 Baptiste [this message]
2014-07-24 13:02 ` ODT exporter does not seem to respect quotation mark for list items Nicolas Goaziou
2014-07-28  8:50   ` Baptiste

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877g34h1hz.fsf@vm_arch_64.bat.fr.eu.org \
    --to=bateast@bat.fr.eu.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).