From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: exporting drawers: odt versus LaTeX Date: Mon, 23 Apr 2018 23:26:51 +0200 Message-ID: <87wowxobqc.fsf@nicolasgoaziou.fr> References: <87bme929jf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAizC-0004gT-Jg for emacs-orgmode@gnu.org; Mon, 23 Apr 2018 17:26:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAiz9-00036k-G4 for emacs-orgmode@gnu.org; Mon, 23 Apr 2018 17:26:58 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:32985) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fAiz9-00035u-A9 for emacs-orgmode@gnu.org; Mon, 23 Apr 2018 17:26:55 -0400 Received: from saiph (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 44C99240003 for ; Mon, 23 Apr 2018 23:26:54 +0200 (CEST) Received: from ngz by saiph with local (Exim 4.89) (envelope-from ) id 1fAiz5-0005xe-Mw for emacs-orgmode@gnu.org; Mon, 23 Apr 2018 23:26:51 +0200 In-Reply-To: <87bme929jf.fsf@gmail.com> (Eric S. Fraga's message of "Mon, 23 Apr 2018 17:05:08 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello, Eric S Fraga writes: > I've gone through the code but cannot determine where this is done and > why the ODT export target is treated differently to the LaTeX one. Both are treated similarly, really. The difference comes from the fact that LaTeX has no markup for paragraph. Therefore, :drawer: Paragraph 1 Paragraph 2 :end: will become Paragraph 1 Paragraph 2 in LaTeX, but

Paragraph 1

Paragraph 2

in HTML... You could write a drawer filter trimming paragraph markup if the drawer consists of a single paragraph (e.g., no blank line). Regards, -- Nicolas Goaziou