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 KAHVKQKu6F/hcgAA0tVLHw (envelope-from ) for ; Sun, 27 Dec 2020 15:53:38 +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 YEZhJQKu6F+kMwAAB5/wlQ (envelope-from ) for ; Sun, 27 Dec 2020 15:53:38 +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 D277A9402A5 for ; Sun, 27 Dec 2020 15:53:37 +0000 (UTC) Received: from localhost ([::1]:57188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktYMS-0003o9-6W for larch@yhetil.org; Sun, 27 Dec 2020 10:53:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktYM5-0003o2-TP for emacs-orgmode@gnu.org; Sun, 27 Dec 2020 10:53:13 -0500 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:37308) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktYM3-0002FQ-8r for emacs-orgmode@gnu.org; Sun, 27 Dec 2020 10:53:13 -0500 Received: by mail-ed1-x52e.google.com with SMTP id cm17so7744716edb.4 for ; Sun, 27 Dec 2020 07:53:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zzamboni-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tAXKzUk8HVJSsGhJbL30GjW+kF+moQAcuKqKZgLRc7A=; b=o0CFB2nrTH65oR0ctcUkXcu53Y/NYEARRMbfk76TRd8XBpB3F29/n9SCVjVg8F3ehC /TEN+BXckDoH1FnovQVukN7zIDtN9XAi6kc59/n3NFCMcYOfZSHMKVYNUIzd5an16pjx 1ui3BX2aP7vp9Pf8083q0kPTFgsb15joaPhSWjbT+QsCIm50/5QJRPEzCVKHINakZRe8 9endHLmlIqDcYTaAU+rzInm9f07H7uVTDwzp16LaWO2cBRBSjfJEPB9C+VJllvCqxNp4 SIiMycrFJuFumhWqgTnvKoCidF6CbXBtUq62JU6P07GfCvYYwLXAQvDuOcAqoYe1MkDR xWvw== 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; bh=tAXKzUk8HVJSsGhJbL30GjW+kF+moQAcuKqKZgLRc7A=; b=grITcbqEVP1d15+GPwthbfBliUqy0TfKx9Sn4JuDW1pa52PPWPL7Y48OOiBkwxZp7l CVg+aLtu5szvlH39YqMd/zBCZ6J76CCF1EwZOl669p2TUixiFSpZ7x5UW4H02FbnvrZr 8Iii3Yae+ckhA9kY+9Z3v8KTQPhpKc/49lMc9PcA+wAQtEzKzhyCNqa4ayMnn6EjUjzT q2kdnQhUgg7gtERc5Gp/hc2+QSKnFdlfDLaZyIr8GnZzJqtEnMh8U2/4UfIM430vrGLn wCMdiJMld51uTkr51pDn5qaXVOidnBRsOzJNpqvfyd4Zx+bOVyE52kLqhKKthUajLqgR GsAw== X-Gm-Message-State: AOAM533vUmlY5jbG/jBcIietCorIUeh64oToJ8ciXu9Z97ACs07D2tpq 1aVL3aexAMDs4uR5ePesiPnvo0EacETrHPbdUzOAlA== X-Google-Smtp-Source: ABdhPJz8IvYB+gJgjX2fgj81Bex+FNg7YQoehoVA9QhK/+EKjyBG9AhYmXxLvJevD4AtqDUnz0q0uKUH58FkVz5kWwc= X-Received: by 2002:a50:8a90:: with SMTP id j16mr38153019edj.334.1609084389311; Sun, 27 Dec 2020 07:53:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Diego Zamboni Date: Sun, 27 Dec 2020 16:52:58 +0100 Message-ID: Subject: Re: A way to avoid unwanted new lines when using paragraph quotes? To: Kashyap Chamarthy Content-Type: multipart/alternative; boundary="00000000000070602405b7742701" Received-SPF: none client-ip=2a00:1450:4864:20::52e; envelope-from=diego@zzamboni.org; helo=mail-ed1-x52e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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: Org-mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=zzamboni-org.20150623.gappssmtp.com header.s=20150623 header.b=o0CFB2nr; dmarc=none; 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: D277A9402A5 X-Spam-Score: -1.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: cAYzjfcVAb6m --00000000000070602405b7742701 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Kashyap, The problem seems to be that when the HTML exporter finds more than one element within a list item, it wraps each one in its own set of =3D

...

=3D tags, which creates the additional space. You can see that this has nothing to do with the quotes, just inserting a second paragraph within the list item triggers this, e.g.: ------ 3. Test 3 - sub bullet under test 3, with a quote: another paragraph within the bullet ------ As Juan Manuel suggested, one way to fix the visual difference is with CSS. To be more selective, you could style only

items with a

  • , like this= : #+HTML_HEAD: In my test, this eliminates the spacing before those items, making them all look the same in the browser. Looking at the ox-html code, there doesn't seem to be a way to prevent this from happening at the moment, a plain paragraph is always wrapped in

    tags. Hope this helps, --Diego On Sun, Dec 27, 2020 at 2:03 PM Kashyap Chamarthy wrote: > Hi, folks =E2=80=94 > > First of all, many thanks to the contributors for their work on > Org-Mode. I'm a happy (novice) user; first time poster here. :-) > > I have a seemingly trivial aesthetic problem. I've attached the > reproducer .org file and its HTML export to demonstrate it. I'm sure > advanced users might recognize the problem immediately. As you notice > in my HTML export: An unwanted new line is added between "Test 3" and > "sub bullet under test 3, with a quote" (which uses > BEGIN_QUOTE/END_QUOTE in the .org file). Likewise, a new line is added > before "Test 4" starts. And yet again, a new line under "Test 6" and > its sub bullet. > > Is there a way to avoid the said new lines in the above mentioned > examples? (NB: A space right _before_ the quote starts is okay.) Or > alternatively, is there a way to consistently force a new line in the > HTML export, after each of "Test 1", "Test 2", et al? > > Many thanks in advance! > > Regards, > Kashyap > --00000000000070602405b7742701 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

    Hi Kashyap,

    The problem seems to be tha= t when the HTML exporter finds more than one element within a list item, it= wraps each one in its own set of =3D<p>...</p>=3D tags, which = creates the additional space. You can see that this has nothing to do with = the quotes, just inserting a second paragraph within the list item triggers= this, e.g.:

    ------
    3. Test 3
    =C2=A0 = =C2=A0- sub bullet under test 3, with a quote:

    =C2=A0 =C2= =A0 =C2=A0another paragraph within the bullet
    ------

    As Juan Manuel suggested, one way to fix the visual differ= ence is with CSS. To be more selective, you could style only <p> item= s with a <li>, like this:

    #+HTML_HEAD: <s= tyle>li p { margin: 0em; }</style>

    In= my test, this eliminates the spacing before those items, making them all l= ook the same in the browser.

    Looking at the ox-htm= l code, there doesn't seem to be a way to prevent this from happening a= t the moment, a plain paragraph is always wrapped in <p> tags.
    <= div>
    Hope this helps,
    --Diego

    <= /div>
    O= n Sun, Dec 27, 2020 at 2:03 PM Kashyap Chamarthy <kashyap.cv@gmail.com> wrote:
    Hi, folks =E2=80=94

    First of all, many thanks to the contributors for their work on
    Org-Mode.=C2=A0 I'm a happy (novice) user; first time poster here. :-)<= br>
    I have a seemingly trivial aesthetic problem. I've attached the
    reproducer .org file and its HTML export to demonstrate it.=C2=A0 I'm s= ure
    advanced users might recognize the problem immediately. As you notice
    in my HTML export: An unwanted new line is added between "Test 3"= and
    "sub bullet under test 3, with a quote" (which uses
    BEGIN_QUOTE/END_QUOTE in the .org file). Likewise, a new line is added
    before "Test 4" starts.=C2=A0 =C2=A0And yet again, a new line und= er "Test 6" and
    its sub bullet.

    Is there a way to avoid the said new lines in the above mentioned
    examples? (NB: A space right _before_ the quote starts is okay.)=C2=A0 Or alternatively, is there a way to consistently force a new line in the
    HTML export, after each of "Test 1", "Test 2", et al?
    Many thanks in advance!

    Regards,
    Kashyap
    --00000000000070602405b7742701--