From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: [BUG] [ODT] Annotations break paragraphs Date: Tue, 26 Mar 2013 10:38:00 +0100 Message-ID: References: <871ub3o6mn.fsf@bzg.ath.cx> <87ip4f9zqa.fsf@bzg.ath.cx> <87r4j35ejb.fsf@bzg.ath.cx> <87ip4fxh1e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKQJA-0002Mn-40 for Emacs-orgmode@gnu.org; Tue, 26 Mar 2013 05:36:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKQJ8-0004LA-Lj for Emacs-orgmode@gnu.org; Tue, 26 Mar 2013 05:36:44 -0400 Received: from mail2.b1.hitrost.net ([91.185.211.205]:39810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKQJ8-0004Kn-Eu for Emacs-orgmode@gnu.org; Tue, 26 Mar 2013 05:36:42 -0400 In-reply-to: <87ip4fxh1e.fsf@gmail.com> 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: Nicolas Goaziou Cc: Bastien , Emacs-orgmode@gnu.org Hi, Patch applied and tested -- looks good! Thanks. Annotations now work again both inside and at the end of paragraphs and list items, without introducing unwanted paragraph breaks or swallowing wanted ones. I haven't looked specifically for corner cases, but I've successfully exported a fairly long document with lots of annotations. Minor cosmetic annoyance: An extra space is inserted before the annotation. Pending the introduction of a dedicated syntax, could we have this fix in master please? Yours, Christian Nicolas Goaziou writes: > Hello, > > Bastien writes: > >> okay, I reverted my wrong fixes. I'll let Nicolas have a look. > > I attach a patch (hardly tested) for that. Does it work as expected? > >> I would not favor a solution that allows more #+begin_ blocks to >> be inlined. > > Neither would I. Blocks are containers. > >> The proper way to handle this is to introduce a new syntax for >> inlined annotations and to treat them appropriately in exporters. >> >> Since we have both #+begin_src and src_{...} I'd suggest >> having annotation_{...} or something similar. > > I would suggest [annotation:label] or [note:label] a dedicated section > for contents, much like footnotes (aren't they just special footnotes, > after all?). That way, they can be inlined while still being able to > contain paragraphs. > >> The LaTeX exporter could use \marginpar{...} and the HTML back-end >> could make them appear when hovering with the mouse on the annotated >> parts (just an idea.) >> >> Maybe we will have to live with the current "regression" for 8.0 >> and implement the new syntax for 8.1. Or for 8.0, if Nicolas thinks >> the change is okay and not too error prone. > > > Regards,