From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: [BUG] [ODT] Annotations break paragraphs Date: Mon, 25 Mar 2013 21:00:39 +0100 Message-ID: References: <871ub3o6mn.fsf@bzg.ath.cx> <87ip4f9zqa.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKDYG-0005PK-C4 for Emacs-orgmode@gnu.org; Mon, 25 Mar 2013 15:59:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKDYB-0006RV-Gz for Emacs-orgmode@gnu.org; Mon, 25 Mar 2013 15:59:28 -0400 Received: from mail2.b1.hitrost.net ([91.185.211.205]:32418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKDYB-0006RL-5r for Emacs-orgmode@gnu.org; Mon, 25 Mar 2013 15:59:23 -0400 In-reply-to: <87ip4f9zqa.fsf@bzg.ath.cx> 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: Bastien Cc: Emacs-orgmode@gnu.org Hi, Bastien, Thanks. Annotations now work inside paragraphs, where they now leave only an extra space instead of paragraph breaks. However, an annotation at the end of a paragraph swallows up the *intended* paragraph break before the next paragraph. And the fix doesn't seem to be quite safe. An annotation immediately before a list item causes an ODT document error -- invalid XML. Examples below. Yours, Christian * Test 1 A paragraph. #+begin_annotation An annotation at the end of a paragraph #+end_annotation Another paragraph that should not be run together with the first, but is. * Test 2 1. A list item. 2. A list item with an annotation at the end. #+begin_annotation This is an annotation. #+end_annotation 3. Another list item. A format error is triggered. Bastien writes: > Hi Christian, > > Christian Moe writes: > >> Thanks for looking into this. I just pulled and tested, but I cannot >> confirm the fix yet. I still get paragraph breaks around annotations >> with Org-mode version 8.0-pre (release_8.0-pre-219-g8eb0d6). > > I gave it another try. Please let me know.