Hi,

I can not reproduce this (ie. my second paragraph is unindented). Here
comes my bug.org/org.txt files I have using ASCII export.
I run Emacs 28.2, I just updated the packages.
I think this is not of importance here, but I use Doom Emacs (up-to-date
also).

I confirm that my goal is to have the indentation of the second paragraph
preserved.

Best,
Leo

Le sam. 1 oct. 2022 à 07:31, Ihor Radchenko <yanta...@gmail.com> a écrit :

> Léo Ackermann <leo.ko...@gmail.com> writes:
>
> > I'm currently working on a tiny project org-inline-blocks that aims to
> > provide a simple syntax for latex-blocks in org-mode based on indent.
> > Namely, instead of #+begin_theorem ... #+end_theorem, it will be possible
> > to write "Theorem." and the export will be based on indent to decide
> > whether some text belongs to the block or not.
> > Unfortunately, ox modifies the indentation of the org-text before running
> > the filter functions. Here is an illustration.
> >
> > Consider the following file `hamlet.org`:
> > ...
> > *---*
> > and this tiny `org-export-filter-body`'s function:
> > ...
> > *My question is thus: how can I prevent ox from unindenting the last line
> > ? *
>
> I am not sure if I understand your problem.
> I tried to export the attached bug.org file to ASCII (C-c C-e t U) and
> got the attached bug.txt file.
>
> The indentation of the second paragraph is preserved.
>
> Do I miss something?
>
>
> --
> Ihor Radchenko,
> Org mode contributor,
> Learn more about Org mode at https://orgmode.org/.
> Support Org development at https://liberapay.com/org-mode,
> or support my work at https://liberapay.com/yantar92
>
Table of Contents
─────────────────




Prince Hamlet of Denmark is the son of the recently deceased King
    Hamlet, and nephew of King Claudius, his father’s brother and
    successor. Claudius hastily married King Hamlet’s widow, Gertrude,
    Hamlet’s mother, and took the throne for himself. Denmark has a
    long-standing feud with neighbouring Norway, in which King Hamlet
    slew King Fortinbras of Norway in a battle some years ago.

Although Denmark defeated Norway, Denmark fears that an invasion led by
the dead Norwegian king’s son, Prince Fortinbras, is imminent.
Prince Hamlet of Denmark is the son of the recently deceased King Hamlet, and nephew of King Claudius, his father’s brother and successor.
    Claudius hastily married King Hamlet’s widow, Gertrude, Hamlet’s mother, and took the throne for himself.
    Denmark has a long-standing feud with neighbouring Norway, in which King Hamlet slew King Fortinbras of Norway in a battle some years ago.

    Although Denmark defeated Norway, Denmark fears that an invasion led by the dead Norwegian king’s son, Prince Fortinbras, is imminent.

Reply via email to