From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Removing horizontal space in latex fragments Date: Sat, 14 Dec 2019 15:57:14 +0100 Message-ID: <87tv63osz9.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53888) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igEW8-0000HT-AO for emacs-orgmode@gnu.org; Sat, 14 Dec 2019 16:00:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igEW6-0001Ix-S8 for emacs-orgmode@gnu.org; Sat, 14 Dec 2019 15:59:59 -0500 Received: from mslow2.mail.gandi.net ([217.70.178.242]:43012) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igEW6-00018B-KG for emacs-orgmode@gnu.org; Sat, 14 Dec 2019 15:59:58 -0500 Received: from relay4-d.mail.gandi.net (unknown [217.70.183.196]) by mslow2.mail.gandi.net (Postfix) with ESMTP id 39FD03B100B for ; Sat, 14 Dec 2019 14:57:43 +0000 (UTC) In-Reply-To: (Matt Huszagh's message of "Thu, 5 Dec 2019 23:42:22 -0800") 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: Matt Huszagh Cc: "emacs-orgmode@gnu.org" , "Fraga, Eric" Hello, Matt Huszagh writes: > Thanks for the reply Eric. The thing I like about the newlines is that the > generated tex files are slightly easier to read. However, this is really > minor. I've created 2 separate patches: one keeping the newlines and the > other without. I'm happy to defer to you or anyone else in regard to which > is preferable. So, has anyone settled on which one to apply? > + ;; remove tex \par at end of snippet to avoid trailing > + ;; whitespace Remove TeX \par at end of... trailing space. > + (if (string= (substring string -1 nil) "\n") Minor nitpick: (if (string-suffix-p string "\n") ...) is slightly less low-level. Thank you. Regards, -- Nicolas Goaziou