* is org-export-preserve-breaks incompatible with org verse blocks?
@ 2020-11-23 18:19 mousebot
2020-12-02 16:08 ` mousebot
0 siblings, 1 reply; 2+ messages in thread
From: mousebot @ 2020-11-23 18:19 UTC (permalink / raw)
To: emacs-orgmode
hi org,
i use verse blocks to export to odt in a way that preserves whitespace. if i enable org-export-preserve-breaks, whitespace in verse blocks is not preserved: any spaces used to indent text from the left margin are reduced to a single space. is this intended behavior? i had hoped to be able to use both features in my document.
example:
#+begin_verse
here you are,
doing your
darned
best
to export
#+end_verse
will export as
here you are
doing your
darned
best
to export
i tested this by loading emacs -Q, evaluating (setq org-export-preserve-breaks t), then using the normal org export dispatch, with no template.
best
m
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: is org-export-preserve-breaks incompatible with org verse blocks?
2020-11-23 18:19 is org-export-preserve-breaks incompatible with org verse blocks? mousebot
@ 2020-12-02 16:08 ` mousebot
0 siblings, 0 replies; 2+ messages in thread
From: mousebot @ 2020-12-02 16:08 UTC (permalink / raw)
To: emacs-orgmode
hi again,
i had a look at the content.xml file in each case.
with org-export-preserve-breaks disabled, whitespace is exported (correctly) like so:
<text:line-break/>
<text:s text:c="5"/>text here indented 5 spaces.<text:line-break/>
with the option enabled, the the spaces are directly transferred to the file:
<text:line-break/> text printed after 5 spaces, which are not properly preserved in the org file.<text:line-break/>
regards,
m
On 23/11/2020 19:19, mousebot wrote:
> hi org,
>
> i use verse blocks to export to odt in a way that preserves whitespace. if i enable org-export-preserve-breaks, whitespace in verse blocks is not preserved: any spaces used to indent text from the left margin are reduced to a single space. is this intended behavior? i had hoped to be able to use both features in my document.
>
> example:
>
> #+begin_verse
> here you are,
> doing your
> darned
> best
> to export
> #+end_verse
>
> will export as
>
> here you are
> doing your
> darned
> best
> to export
>
> i tested this by loading emacs -Q, evaluating (setq org-export-preserve-breaks t), then using the normal org export dispatch, with no template.
>
> best
> m
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-02 16:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-23 18:19 is org-export-preserve-breaks incompatible with org verse blocks? mousebot
2020-12-02 16:08 ` mousebot
Org-mode mailing list
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://orgmode.org/list/0 list/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 list list/ https://orgmode.org/list \
emacs-orgmode@gnu.org
public-inbox-index list
Example config snippet for mirrors.
Newsgroups are available over NNTP:
nntp://news.yhetil.org/yhetil.emacs.orgmode
nntp://news.gmane.io/gmane.emacs.orgmode
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git