From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0BIYFBjRN2PtrAAAbAwnHQ (envelope-from ) for ; Sat, 01 Oct 2022 07:33:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OH4mFBjRN2NPswAA9RJhRA (envelope-from ) for ; Sat, 01 Oct 2022 07:33:12 +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 D78A53EC15 for ; Sat, 1 Oct 2022 07:33:11 +0200 (CEST) Received: from localhost ([::1]:51104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeV7e-0001qh-ES for larch@yhetil.org; Sat, 01 Oct 2022 01:33:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeV6V-0001qL-Ql for emacs-orgmode@gnu.org; Sat, 01 Oct 2022 01:31:59 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:36518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeV6T-0006eT-UD for emacs-orgmode@gnu.org; Sat, 01 Oct 2022 01:31:59 -0400 Received: by mail-pg1-x52a.google.com with SMTP id s206so5772292pgs.3 for ; Fri, 30 Sep 2022 22:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=5kP+Mkuef93X4QSf5wkhmsSwh/IsiNrkRrEb9itZvqk=; b=V/RRKa6fIgIQbEjRglHCfDl4P4RqfiaU2qNwcz8F00IFmpG4I8ZuIM2uHjF78RAZHO 97Zqdr7oDyuZtwF9U9vB0vUcEA9yFTjbsQcq1NugESSrtgz1CdeStdaUfxX5yMUX4XsE ZXe9nIgHgxHzPBClHIembNSdPNq51fX7Avmbiw89Q7HRWIWkQaY2JM6okayVELwwRFjP hASoVPVQ+oRk3+3nDVr/jZ9XRAVCt/WuNJDZdAgERSNPClCnwVoR9TPrzx1C80o2g01+ ouQjOYL+S4rflPSiWXyU8QZwgjTe0jPUuztASkN9QYanqqbtAiJQsOUR1o8gArFye3AO zT9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=5kP+Mkuef93X4QSf5wkhmsSwh/IsiNrkRrEb9itZvqk=; b=AAjTAy0E7SGOUedyenF6HYOsswuFM3aS+Qr7zcweixHQTlzo+sjryi67KlXZ9ajaLV rFg/7lhA8eCNqGhiFin12MBlFbVfk9AVBqfy7ctwXZyUnz7h/g4K2FTca+WUvDYjkG+w mEYVWj5QvEYsx7KF0dnWqGzkqJTiZabrpHmX5h8p75t7I5Eyqp6wrb5dJ2cxGgGJqS3X l4BeznX/AjrB0ZkM8O5hoAp2gZE32Ah3O0C0Nv+Mc1MjOv7ConfXWfIYCON8A1U7zeug 1fa1GaKFLGQi0koBXQ34txPDeP2O271hBgHZwJ9zmmK0Pc+Yj8xBbRa/z81cYCyMRVzA X6PQ== X-Gm-Message-State: ACrzQf3t8oatVKjYWdbdAl4qIykss5rlfAzrd9wqviPjd1hl/2HGu/nI nlHin7BYr7+acPwXNn//0vTsEh63O4AsAw== X-Google-Smtp-Source: AMsMyM65Z0dIQ/ip5uZVCSWJ9uk0OmS8ZDwejUCEj6VrYG8zxqdNeh9HG8mC5k/L/008d2KBGRiP4A== X-Received: by 2002:a05:6a00:24c2:b0:52e:7181:a8a0 with SMTP id d2-20020a056a0024c200b0052e7181a8a0mr12444147pfv.57.1664602316110; Fri, 30 Sep 2022 22:31:56 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id f184-20020a6251c1000000b00537b6bfab7fsm2892509pfb.177.2022.09.30.22.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 22:31:55 -0700 (PDT) From: Ihor Radchenko To: =?utf-8?Q?L=C3=A9o?= Ackermann Cc: Org Mode List Subject: Re: Ox unindents lines but I can't see when In-Reply-To: References: Date: Sat, 01 Oct 2022 13:32:48 +0800 Message-ID: <87tu4o1533.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=yantar92@gmail.com; helo=mail-pg1-x52a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=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=1664602392; 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=5kP+Mkuef93X4QSf5wkhmsSwh/IsiNrkRrEb9itZvqk=; b=tAact7p5uwWXaSF0FMIsajwmq3OlgZFskMU9wjMZrSKjp8OlJ5iNxWnyK2dzzNg0Mu3kC8 OYKprJ9ZhGc0WCM88LkywbNELdgTtTfkeYHak6Qyw8pESyB7OYxsvMVYDOy+gY2p+gEhFL JOWq6iN8c63pD+FtrTD8iPisNnRoHHZTAeZ8U0qVGbiWTg9ge4/EspC0quxJyV4qUkq1UR qj1Kbnw8gLqioQnkrkwNELTyPNWJA15kxGDsKRuTm5JRvDGuUHt12Ho35uXHRXZ8nCnwhL wjrilQMb1vmbM6hTW/0QT493BerXsNQGivVfq5gdD9mId5p+x8B/hAv3cGjzDg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664602392; a=rsa-sha256; cv=none; b=QYRsjCeUqfxmUcu/BJv/427wt8BgwBGXvR8rZs6TBd/7v5EBaOIbqVoVGCp4B2flJmi8Sz X2m0SItyrK+frr79RYp6rXL6WLGbtguR3YK+ZYKReGXLHupTi9DP9A1J8EhcuaEMRP502m ViVxugh9V1+Bwba+0GyzU8ko351XbqoSLMJqg0/nWHgGKzPnmjSgo6YMh1bl4xatVW14e0 LIMnOWxZ2yd9wp3mrcvbJEEwfFRKZAdkex/63o2/ozRtrmSIJuwd3S1KnV9MLOuG0YtlsP OgkhT3uXvWj18jUhgiXD85drMZ6pcBz8NLhK2Sm/JU+3eAmkGD6NJ7aL7g5c/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="V/RRKa6f"; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="V/RRKa6f"; dmarc=pass (policy=none) header.from=gmail.com; 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: D78A53EC15 X-Spam-Score: -3.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: n8KcssG2KWhn --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 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? --=-=-= Content-Type: application/vnd.lotus-organizer; charset=utf-8 Content-Disposition: inline; filename=bug.org Content-Transfer-Encoding: base64 UHJpbmNlIEhhbWxldCBvZiBEZW5tYXJrIGlzIHRoZSBzb24gb2YgdGhlIHJlY2VudGx5IGRlY2Vh c2VkIEtpbmcgSGFtbGV0LAphbmQgbmVwaGV3IG9mIEtpbmcgQ2xhdWRpdXMsIGhpcyBmYXRoZXLi gJlzIGJyb3RoZXIgYW5kIHN1Y2Nlc3Nvci4KQ2xhdWRpdXMgaGFzdGlseSBtYXJyaWVkIEtpbmcg SGFtbGV04oCZcyB3aWRvdywgR2VydHJ1ZGUsIEhhbWxldOKAmXMgbW90aGVyLAphbmQgdG9vayB0 aGUgdGhyb25lIGZvciBoaW1zZWxmLiBEZW5tYXJrIGhhcyBhIGxvbmctc3RhbmRpbmcgZmV1ZCB3 aXRoCm5laWdoYm91cmluZyBOb3J3YXksIGluIHdoaWNoIEtpbmcgSGFtbGV0IHNsZXcgS2luZyBG b3J0aW5icmFzIG9mIE5vcndheSBpbgphIGJhdHRsZSBzb21lIHllYXJzIGFnby4gICAgICAgIEFs dGhvdWdoIERlbm1hcmsgZGVmZWF0ZWQgTm9yd2F5IGFuZCB0aGUKTm9yd2VnaWFuIHRocm9uZSBm ZWxsIHRvIEtpbmcgRm9ydGluYnJhc+KAmXMgaW5maXJtIGJyb3RoZXIsIERlbm1hcmsgZmVhcnMK dGhhdCBhbiBpbnZhc2lvbiBsZWQgYnkgdGhlIGRlYWQgTm9yd2VnaWFuIGtpbmfigJlzIHNvbiwg UHJpbmNlIEZvcnRpbmJyYXMsCmlzIGltbWluZW50LgoKICAgICAgICBPbiBhIGNvbGQgbmlnaHQg b24gdGhlIHJhbXBhcnRzIG9mIEVsc2lub3JlLCB0aGUgRGFuaXNoIHJveWFsCmNhc3RsZSwgdGhl IHNlbnRyaWVzIEJlcm5hcmRvIGFuZCBNYXJjZWxsdXMgZGlzY3VzcyBhIGdob3N0IHJlc2VtYmxp bmcgdGhlCmxhdGUgS2luZyBIYW1sZXQgd2hpY2ggdGhleSBoYXZlIHJlY2VudGx5IHNlZW4sIGFu ZCBicmluZyBQcmluY2UgSGFtbGV04oCZcwpmcmllbmQgSG9yYXRpbyBhcyBhIHdpdG5lc3MuCgoK --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline; filename=bug.txt Content-Transfer-Encoding: quoted-printable Ihor Radchenko Table of Contents =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80 Prince Hamlet of Denmark is the son of the recently deceased King Hamlet, and nephew of King Claudius, his father=E2=80=99s brother and succe= ssor. Claudius hastily married King Hamlet=E2=80=99s widow, Gertrude, Hamlet=E2= =80=99s 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 and the Norwegian throne fell to King Fortinbras=E2=80=99s infirm brother, Denmark = fears that an invasion led by the dead Norwegian king=E2=80=99s son, Prince Fortinbras, is imminent. On a cold night on the ramparts of Elsinore, the Danish royal castle, the sentries Bernardo and Marcellus discuss a ghost resembling the late King Hamlet which they have recently seen, and bring Prince Hamlet=E2=80=99s friend Horatio as a witness. --=-=-= Content-Type: text/plain -- 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 --=-=-=--