From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Problem with org-export--delete-comments Date: Thu, 17 Dec 2015 21:48:39 +0100 Message-ID: <87h9jgrec8.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9fS2-0005qW-Kl for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 15:47:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9fRy-0002Zk-AZ for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 15:47:02 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:39136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9fRy-0002Zf-4B for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 15:46:58 -0500 In-Reply-To: (Ethan Ligon's message of "Thu, 17 Dec 2015 18:27:27 +0000 (UTC)") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ethan Ligon Cc: emacs-orgmode@gnu.org Hello, Ethan Ligon writes: > I've long used the following construction for displayed equations in org > # > \[ > u_i(c)=p_i\lambda > \] > # > which (i) gives nice space for reading equations in the org-source, and > (ii) nicely protects the display equation from (fill-paragraph) and > friends. > > However, exporting with this construction *stopped* working after commit > 53a4209; what happens now is that ox.el replaces the # with a blank line, > breaking my single paragraph into three. I see only one paragraph above. Could you elaborate a bit? > A related problem: one can no longer have commented lines in (at least > some) property drawers. This is not possible indeed, per property drawers syntax. Also, I'd rather not introduce comments in property drawers (I don't think this was ever officially supported anyway). > It seems to me that the correct solution would have org-export--delete- > comments actually delete a single line comment, not replace it with \n, as > was the case prior to the indicated commit. > > I gather that the change was introduced to deal with a bug observed by > Samuel Wales (http://article.gmane.org/gmane.emacs.orgmode/102860; see also > below). His problem example involved incorrectly truncated footnotes > (these are deemed to end after two blank lines). But it seems to me that > the correct solution to his example is to delete *both* the commented > line and the following blank line. Been there, done that. Your solution is not correct in all cases. E.g., with the following document Paragra1 # comment Paragraph2 removing both the comment and the blank line above gives you a single paragraph, which doesn't match expectations. > I regard this as a bug, but if it's not how do others deal with similar > issues? I have the feeling that there is no perfect solution here, and something will break on one side or the other, anyway. Regards, -- Nicolas Goaziou