From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8Bm8DDVI+GDUAAEAgWs5BA (envelope-from ) for ; Wed, 21 Jul 2021 18:15:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MISJCDVI+GAYBgAAB5/wlQ (envelope-from ) for ; Wed, 21 Jul 2021 16:15:49 +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 AB63D296E4 for ; Wed, 21 Jul 2021 18:15:48 +0200 (CEST) Received: from localhost ([::1]:59984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6Ess-0007Ik-BU for larch@yhetil.org; Wed, 21 Jul 2021 12:15:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6Eqi-0005yP-J7 for emacs-orgmode@gnu.org; Wed, 21 Jul 2021 12:13:32 -0400 Received: from ciao.gmane.io ([116.202.254.214]:35320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6Eqd-0002Pu-GL for emacs-orgmode@gnu.org; Wed, 21 Jul 2021 12:13:32 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1m6EqZ-0008TK-FV for emacs-orgmode@gnu.org; Wed, 21 Jul 2021 18:13:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Maxim Nikulin Subject: Re: Comments break up a paragraph when writing one-setence-per-line Date: Wed, 21 Jul 2021 23:13:14 +0700 Message-ID: References: <87y2a29z9l.fsf@ucl.ac.uk> <87bl6vy9mw.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: <87bl6vy9mw.fsf@ucl.ac.uk> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 27 X-Spam_score: 2.7 X-Spam_bar: ++ X-Spam_report: (2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-0.117, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626884148; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=kYuyn1WfqV1i8CYTf0M1CsCb/nNWgEWdTgaf8Vqnh8A=; b=Z6OQjCKDnZaX9lf5yaVEjUXneA8NsO4nPv4NJc/8ji4uDz36hS+rV+eTpOQJ7k1atGVggf 5fZQ4XcAJ5cb4Qtyd7iabwLarQcBDCM88TWmKhodfdE9LQ47JFs+DGr3SKl5W06D4OOWwp 0rDXgw2tmNn2NDATU3tIOT1cxMsSFIzQ8EbckUzqgxAChErhtAaNWzNrI7/CiANlUmrpRU MUDG0Z88Fod6SpoQ8+wg+kkGgZySX305xIy8CZl3fHFjFwjO6xoN50mBisRPw44g8GOuXP ebS6vpBFwO03lRNcYi59shL1GXMhu7ZOegOqK28ohM7y/cc4zUwtTms/Ej1XRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626884148; a=rsa-sha256; cv=none; b=lg/BU011dojiZp1N9hBG+v0GPRmfzJ2ghmuJup56Tnc8dOacvr/+vPGUwd7qZMtu3UrSZ/ +s8HMsg+HpiAM+07bk4R5dwbBfEuRtEjcyLlWlStr5/Vs91vCPR6OPvIpkJLE42Bq7+ZrH BYIbCZGzlIXs1rIcuTXZjFzxL9VaJgbczRXuyJ5lnHcfdHD6hhl9xJ0cHXoHyrShU/JglC x4qH9U9uIeGC4eDcHPCj6ujfXVQaAXRrO1bo7M73mJQashwcu1TWfJzWMDREFIkzVFU0L2 /bxMw2WlDWXBphdYGd24Mt1oFCIotuN6RdXQG5AYHHXKcbwB3Cg8/BBJVKDzvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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-Spam-Score: -0.98 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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: AB63D296E4 X-Spam-Score: -0.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: M7++a7VWREpi On 21/07/2021 22:22, Eric S Fraga wrote: > On Wednesday, 21 Jul 2021 at 21:48, Maxim Nikulin wrote: >> It is at least fragile. HTML export results in separate paragraphs: > > Yes, I said "if exporting to LaTeX"... ;-) > >> I am unsure, but "#+latex:" probably belongs to "Keywords" that are >> elements, so it should end a paragraph. If such interpretation is >> correct than either LaTeX exporter has a bug or syntax description >> should be justified. > > No, I don't think of it as a keyword and it cannot end a paragraph as it > would then break any document that uses such constructs. Not sure what > to call it but it falls into the same category as inline directives like > @@latex:...@@. And, in fact, this would work as well as the first > example, again failing for HTML export: ... > (untested) :-) "@@backend:@@" aka Export Snippet is an "object", not "element" thus is should not start paragraph https://orgmode.org/worg/dev/org-syntax.html#Export_Snippets Though... With LaTeX you should be careful ---- >8 ---- One sentence is here. @@html:inline HTML@@ Second sentence. ---- 8< ---- Export to LaTeX: ---- >8 ---- One sentence is here. Second sentence. ---- 8< ---- "@@latex:@@" line in HTML export generates empty line but does not break the paragraph. "#+html:" construct splits paragraphs: One sentence is here. #+html: Second sentence.

One sentence is here.

Second sentence.

I find behavior of HTML exporter more consistent but partially the difference originates in distinct interpretation of empty lines. P.S. There are two types of comments: ones that should be exported as comments and that should be completely removed. "#+latex: %" comments leak to LaTeX, though they will be stripped during generation of PDF. So depending of what format you should provide, such behavior may be acceptable or not.