From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: [BUG] [ODT] Annotations break paragraphs Date: Thu, 21 Mar 2013 22:18:02 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UImrB-0004HO-1H for Emacs-orgmode@gnu.org; Thu, 21 Mar 2013 17:17:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UImr6-00032v-EL for Emacs-orgmode@gnu.org; Thu, 21 Mar 2013 17:17:04 -0400 Received: from mail2.b1.hitrost.net ([91.185.211.205]:44997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UImr6-00032Y-7e for Emacs-orgmode@gnu.org; Thu, 21 Mar 2013 17:17:00 -0400 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: Emacs-orgmode@gnu.org Hi, Paragraphs currently break around ODT annotations when they shouldn't. Annotations are a useful feature of the ODT exporter: There is an annotation by the original author here #+BEGIN_ANNOTATION I never meant to break this paragraph. #+END_ANNOTATION in the middle of the paragraph. The expected result would be one paragraph, with the annotation displayed as a comment in the page margin, anchored after the word "here". The new exporter adds paragraph breaks around the anchor for the marginal comment. This is the wrong behavior in all cases. These comments are meant to be anchored inside paragraphs that are not meant to be broken. (Using a fresh Org-mode version 8.0-pre on Emacs 24.3.1.) The old exporter simply wrapped the contents of the annotation block (plus date/author info) in "\n%s\n" within the paragraph. The ODT exporter's annotation blocks are a bit of a special case. They use special-block syntax. But they're not really blocks, since they're supposed to live inside other blocks (paragraphs). I suppose that doesn't agree well with the new exporter. Yours, Christian