From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MBYFKPTwN2Nt4QAAbAwnHQ (envelope-from ) for ; Sat, 01 Oct 2022 09:49:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IH0XKPTwN2M2rgAA9RJhRA (envelope-from ) for ; Sat, 01 Oct 2022 09:49:08 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 199C11AEED for ; Sat, 1 Oct 2022 09:49:08 +0200 (CEST) Received: from localhost ([::1]:36386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeXFC-0004HW-5S for larch@yhetil.org; Sat, 01 Oct 2022 03:49:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeXEj-0004HM-QI for emacs-orgmode@gnu.org; Sat, 01 Oct 2022 03:48:37 -0400 Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]:42961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeXEh-0007Ss-NH for emacs-orgmode@gnu.org; Sat, 01 Oct 2022 03:48:37 -0400 Received: by mail-vs1-xe2a.google.com with SMTP id n186so1108446vsc.9 for ; Sat, 01 Oct 2022 00:48:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=Z/qJy9ixjUL12PiLDdNlD3282c0WWKmC5TfGX5GtQgA=; b=de1HxVIjCjPhUcyOagzLxm34dpylzZjPDnADmSkj83tfuLe/dPsdwraFutqJPSMYeU SYXl6rV1rbQHBDq/rm7bHWunjp8ZVdu95FrESckf9dzK0+7zkiY4cmctSpTc9Qv9W8UF 4A1kE/jvVYkUk7Sw0+XFXJsGTRcG0+qqah1A2wj5aWj8USXRo7A6OGIR31AdXe/OnbTE K/tfjCHlznepUDsDo1GorvwyvR7Bcdwl5L12gYs9XAxNV3NEOUvORuQw3zamO2O7dYd/ IMBgN989ilHpHX/xU9iRj5xrDS80vMvQDynZmnjXZRavt9KGIoVhRaFo00TCJtZEIw33 WgUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=Z/qJy9ixjUL12PiLDdNlD3282c0WWKmC5TfGX5GtQgA=; b=Q4rnFSsUjomcX54I5L7V+QfgsxH3gaflxWuIqp4Xid2qetpZ9jeS7PAwuEZzfWTEnp d4+mbahLBB14kiYHfSS7OSIGWqUSNneszdFbp38TZxyrYnQ9gGTWCltk5LzDpojS4Lpa 9vINwl6dalxaOUf8BxKQ5Z1GUb45MmXqY/glY3KJVN0er5wy6lsl8MhDXyr4dVST+w/T UZrRIm1VGXvBwhYbAAUyvDVcwH/oqt5Up/WwBQ9ltJVn5g1961JUAMBTC9NHaTX9LU4G PvbIsafmil12xIsh+c+0/2f4Y4TsuS9vdw07x/MMWhyCNE4aDFhcGJc+//djQHKH3RyN KT6g== X-Gm-Message-State: ACrzQf2BTf/ezNMcVRaRgg2nF/5zku0kK6vOsHynvabMS4/nzoiE5kGT MlDK4YyalpJJjMFHHsapKRC/h5A7wjS9FLkfR2o= X-Google-Smtp-Source: AMsMyM4VQL7Bnk7u+/vYXlaZ2J82k6X3wLIR0T3xwN5xhVmdPrYoFE42Buka4RV8agaqUHFwEFgWvoL0sUp6nL1Q5Io= X-Received: by 2002:a05:6102:31b4:b0:398:bf4:8457 with SMTP id d20-20020a05610231b400b003980bf48457mr5724629vsh.50.1664610514093; Sat, 01 Oct 2022 00:48:34 -0700 (PDT) MIME-Version: 1.0 References: <87tu4o1533.fsf@localhost> In-Reply-To: <87tu4o1533.fsf@localhost> From: =?UTF-8?Q?L=C3=A9o_Ackermann?= Date: Sat, 1 Oct 2022 09:48:22 +0200 Message-ID: Subject: Re: Ox unindents lines but I can't see when To: Ihor Radchenko Cc: Org Mode List Content-Type: multipart/mixed; boundary="00000000000061e90305e9f4561d" Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=leo.komba@gmail.com; helo=mail-vs1-xe2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664610548; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2dQ2KDulkerSaBxkQQdiWViiZgYahK/NqbIa8qX41eo=; b=jkGrITriYEmgVZ3KkDEpRD6AmcsLPqgDN1MDSV50twrIfnpKZZnNH1UDnzPRcILk1C8HrV JQOcsHGLrrUDkZYt4gplLq6LBhK3Y5PTBxmpWzK/I/C5ktHKRQIzeY6sHcMzcWqzFdxU06 B3mD13PMDE4X3Cec7yIq7n24p52UOcVBbiMKdQ/savcvUy2AXnAfv5LGlctSdKvWCLXD+W 4C8TToBs3X+R631udKQc5QVST8Jr3JKElcCIqsEJ5AAOEi+/vZNsnpeoF48+F6wpcqJuAJ RHwrugyEdRRqj5WKnyh+Q0QGVfYDkIsxyrUdL22iufPLVIgrxrhKRQfH1F+kbA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664610548; a=rsa-sha256; cv=none; b=fAe74aFNKapVp3hos8Nz3cWosjO38dCGGyvbOWHwAPugwCGzHbD/BXInhaHkGqrNriWbBD 5TcupA5A3CsNC5zOlwdEvtBDgXA7VSc5IfhCWoHJ67tLhAPJNshxJ2tMi9fkG/r+dN9lDx s4PkoF+a6+apRlzvg2pguvm9WEu3OQnzZruZ7igWSNMtvZHtYJ+SF4IhYk2BaJ8kkuvIpu 3tHVwX8YLE9wCYY8ZqmHCRgLnUK7NIV74bXvvt3S8tl7utJVA7X04+mcmaQDg6UyCGOk0r YlaTQY8xyb0YzKlU19hoYERWsvx+Vg7PzmjC4Oeur1z+T9spZ1AVD0yD3E1yqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=de1HxVIj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=de1HxVIj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 199C11AEED X-Spam-Score: 6.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5jCksNoUxKIH --00000000000061e90305e9f4561d Content-Type: multipart/alternative; boundary="00000000000061e90105e9f4561b" --00000000000061e90105e9f4561b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 =C3=A0 07:31, Ihor Radchenko a =C3= =A9crit : > L=C3=A9o Ackermann 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 possib= le > > 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 runni= ng > > 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 li= ne > > ? * > > 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 > --00000000000061e90105e9f4561b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 E= macs 28.2, I just updated the packages.
I think this is not of importanc= e here, but I use Doom Emacs (up-to-date also).

I = confirm that my goal is to have the indentation of the second paragraph pre= served.

Best,
Leo

Le=C2=A0sam. 1 oc= t. 2022 =C3=A0=C2=A007:31, Ihor Radchenko <yantar92@gmail.com> a =C3=A9crit=C2=A0:
L=C3=A9o Ackermann <leo.komba@gmail.com> wr= ites:

> I'm currently working on a tiny project org-inline-blocks that aim= s to
> provide a simple syntax for latex-blocks in org-mode based on indent.<= br> > Namely, instead of #+begin_theorem ... #+end_theorem, it will be possi= ble
> to write "Theorem." and the export will be based on indent t= o decide
> whether some text belongs to the block or not.
> Unfortunately, ox modifies the indentation of the org-text before runn= ing
> 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 l= ine
> ? *

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
--00000000000061e90105e9f4561b-- --00000000000061e90305e9f4561d Content-Type: text/plain; charset="UTF-8"; name="bug.txt" Content-Disposition: attachment; filename="bug.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l8pm3yxo1 VGFibGUgb2YgQ29udGVudHMK4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA 4pSA4pSA4pSA4pSACgoKCgpQcmluY2UgSGFtbGV0IG9mIERlbm1hcmsgaXMgdGhlIHNvbiBvZiB0 aGUgcmVjZW50bHkgZGVjZWFzZWQgS2luZwogICAgSGFtbGV0LCBhbmQgbmVwaGV3IG9mIEtpbmcg Q2xhdWRpdXMsIGhpcyBmYXRoZXLigJlzIGJyb3RoZXIgYW5kCiAgICBzdWNjZXNzb3IuIENsYXVk aXVzIGhhc3RpbHkgbWFycmllZCBLaW5nIEhhbWxldOKAmXMgd2lkb3csIEdlcnRydWRlLAogICAg SGFtbGV04oCZcyBtb3RoZXIsIGFuZCB0b29rIHRoZSB0aHJvbmUgZm9yIGhpbXNlbGYuIERlbm1h cmsgaGFzIGEKICAgIGxvbmctc3RhbmRpbmcgZmV1ZCB3aXRoIG5laWdoYm91cmluZyBOb3J3YXks IGluIHdoaWNoIEtpbmcgSGFtbGV0CiAgICBzbGV3IEtpbmcgRm9ydGluYnJhcyBvZiBOb3J3YXkg aW4gYSBiYXR0bGUgc29tZSB5ZWFycyBhZ28uCgpBbHRob3VnaCBEZW5tYXJrIGRlZmVhdGVkIE5v cndheSwgRGVubWFyayBmZWFycyB0aGF0IGFuIGludmFzaW9uIGxlZCBieQp0aGUgZGVhZCBOb3J3 ZWdpYW4ga2luZ+KAmXMgc29uLCBQcmluY2UgRm9ydGluYnJhcywgaXMgaW1taW5lbnQuCg== --00000000000061e90305e9f4561d Content-Type: text/org; charset="UTF-8"; name="bug.org" Content-Disposition: attachment; filename="bug.org" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l8pm3yww0 UHJpbmNlIEhhbWxldCBvZiBEZW5tYXJrIGlzIHRoZSBzb24gb2YgdGhlIHJlY2VudGx5IGRlY2Vh c2VkIEtpbmcgSGFtbGV0LCBhbmQgbmVwaGV3IG9mIEtpbmcgQ2xhdWRpdXMsIGhpcyBmYXRoZXLi gJlzIGJyb3RoZXIgYW5kIHN1Y2Nlc3Nvci4KICAgIENsYXVkaXVzIGhhc3RpbHkgbWFycmllZCBL aW5nIEhhbWxldOKAmXMgd2lkb3csIEdlcnRydWRlLCBIYW1sZXTigJlzIG1vdGhlciwgYW5kIHRv b2sgdGhlIHRocm9uZSBmb3IgaGltc2VsZi4KICAgIERlbm1hcmsgaGFzIGEgbG9uZy1zdGFuZGlu ZyBmZXVkIHdpdGggbmVpZ2hib3VyaW5nIE5vcndheSwgaW4gd2hpY2ggS2luZyBIYW1sZXQgc2xl dyBLaW5nIEZvcnRpbmJyYXMgb2YgTm9yd2F5IGluIGEgYmF0dGxlIHNvbWUgeWVhcnMgYWdvLgoK ICAgIEFsdGhvdWdoIERlbm1hcmsgZGVmZWF0ZWQgTm9yd2F5LCBEZW5tYXJrIGZlYXJzIHRoYXQg YW4gaW52YXNpb24gbGVkIGJ5IHRoZSBkZWFkIE5vcndlZ2lhbiBraW5n4oCZcyBzb24sIFByaW5j ZSBGb3J0aW5icmFzLCBpcyBpbW1pbmVudC4K --00000000000061e90305e9f4561d--