From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4AE5F8n56F/bUQAA0tVLHw (envelope-from ) for ; Sun, 27 Dec 2020 21:16:57 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CF4JE8n56F8kEwAAB5/wlQ (envelope-from ) for ; Sun, 27 Dec 2020 21:16:57 +0000 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 BDBEE9404CE for ; Sun, 27 Dec 2020 21:16:56 +0000 (UTC) Received: from localhost ([::1]:38528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktdPL-0006jn-MA for larch@yhetil.org; Sun, 27 Dec 2020 16:16:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktdO6-0006Lx-RZ for emacs-orgmode@gnu.org; Sun, 27 Dec 2020 16:15:42 -0500 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]:34153) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktdO4-0001aF-Pf for emacs-orgmode@gnu.org; Sun, 27 Dec 2020 16:15:38 -0500 Received: by mail-oi1-x236.google.com with SMTP id s75so9822138oih.1 for ; Sun, 27 Dec 2020 13:15:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=db2A/+2t4PW8hhDaTtyo4KW6vTrKhRVcYaUG3ty83UE=; b=UCvjfb+z6cuvnXVYWH/6k3MOfJdySqfyrki+gjyaWLleOkAVXhsg0ob1ZU/xqa8YuF kVzRIww/8j9OLxKvFNirLMmrA1h0+RlIIywBRN+4N+gZwnWNv64jHeVixTXWf3iuAvIx 5X60t1ea7XRmBCNTZjnaJwzbJ1HQFom01io1V6PIslFNI9BWBrf4FIgcN+br2fybPKyS t3cW+KLxM/0Z26XdhRiOUnHB4jXLZCO2jrHUnC53a0KNVGWXhFl5iOuQR8bsHgNJ03bW GIf/tEYkVTUW2IST5GJ0NeUFUGBpe+z9dFYhdGU1hof03fG5hjgAxXKbN0+JwbRG7Do+ fhXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=db2A/+2t4PW8hhDaTtyo4KW6vTrKhRVcYaUG3ty83UE=; b=rylydgLfcozc7gZFf/+/2Gy9BSjjDFkzQ+oa89FgVQ4oF7ggjdfC1ttgKl0+1IJn99 n6Y34MEqRq+8T88aN4TfI80F96/F5hisoF4i6ZjZHkydm8z3DrAxp+2D9zRRS2BXO32P UNpuSO0FBgtlu41drlHw3DV8vgbWnvDT/JZafiquGrpQwqvchB7MI8eMxrYpGfdeKtuZ P1PobTTvGXiBiPBdKGZdMSBkUMGCBSDUqH7piw+6SOVniC1O7Zh4buuDJ0UerRe9xJ6/ asyns16J3iNz7g7pFW68CqlcSsWwy2cC7I3sW2gDYy+KflCm1sKofnJGRHSKHLjEhB82 Ybsg== X-Gm-Message-State: AOAM533hpyzTQlNF3vr40pIQ3dMkQUY2JH4PPC1oBdMYjBfUD2x2BK5M tiZwKE/wvEmduwa17Chqp0Ls0cuWNfGccUetnWyd0rHpMWg= X-Google-Smtp-Source: ABdhPJw376P98cgIke7XxEkp0D6QKGFpepy8JBRB3sbUpXh0eW7bO+lBGu/xkQ9DY0PVBrx9d5Z1adrPtJU0EyTnR+U= X-Received: by 2002:aca:ccc1:: with SMTP id c184mr10384591oig.121.1609103735747; Sun, 27 Dec 2020 13:15:35 -0800 (PST) MIME-Version: 1.0 References: <87a6tzukhf.fsf@posteo.net> In-Reply-To: <87a6tzukhf.fsf@posteo.net> From: Kashyap Chamarthy Date: Sun, 27 Dec 2020 22:15:25 +0100 Message-ID: Subject: Re: A way to avoid unwanted new lines when using paragraph quotes? To: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::236; envelope-from=kashyap.cv@gmail.com; helo=mail-oi1-x236.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, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=UCvjfb+z; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: BDBEE9404CE X-Spam-Score: -2.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: UQFEIjIqgs8C On Sun, Dec 27, 2020 at 8:17 PM Juan Manuel Mac=C3=ADas wrote: > > Hello again Kashyap, Hey, Juan > Kashyap Chamarthy writes: > > > Hmm, that fixes the new line before the "sub bullet under test 3, with > > a quote". However, a new line still remains after the quote ends (and > > before the "Test 4" starts). Is it possible to nuke that too? If > > not, that's okay, I can live with it. :-) > > I'd say a vertical space before and after a block quote would be > 'typographically' correct. You're right, and I agree. > But if you want to eliminate the space after > the block quote, without having to modify it in a general way, it could > be solved with a bit of Elisp, by defining a custom filter so that the >
tag would be modified only within a plain list. Thus, with t= he > configuration that Diego has suggested, everything would be without > vertical space except the space before each block quote: > > #+BIND: org-export-filter-plain-list-functions (my-filter-html) > #+begin_src emacs-lisp :exports results :results none > (defun my-filter-html (text backend info) > (when (org-export-derived-backend-p backend 'html) > (replace-regexp-in-string "
" "
" text))) > #+end_src Thank you for the code snippet. My only use of Emacs is Org-Mode, so I haven't spent much time learning Elisp yet. Regards, Kashyap