From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: [BUG][ODT] Subtree export fails when link references target on higher level Date: Fri, 22 Nov 2013 09:04:19 +0100 Message-ID: References: <87wqk15py1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjlju-0002Js-Br for emacs-orgmode@gnu.org; Fri, 22 Nov 2013 03:05:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vjljm-00082b-Hp for emacs-orgmode@gnu.org; Fri, 22 Nov 2013 03:05:22 -0500 Received: from mail-forward1.uio.no ([129.240.10.70]:35014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjljm-00081y-Aq for emacs-orgmode@gnu.org; Fri, 22 Nov 2013 03:05:14 -0500 Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.75) (envelope-from ) id 1Vjljj-0000Io-Im for emacs-orgmode@gnu.org; Fri, 22 Nov 2013 09:05:11 +0100 In-reply-to: <87wqk15py1.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: Emacs-orgmode Nicolas Goaziou writes: > Hello, > > Christian Moe writes: > >> The two examples below illustrate an odd ODT export failure that occurs in >> restricted circumstances: only when the target of the link is on a >> higher level of the tree than the link. >> >> * This fails >> >> ** A subheader >> >> This paragraph is bookmarked. <> >> >> When I try to export this subtree to ODT (`C-c C-e C-s o O' at point), I get >> : user-error: No such file: /Users/CM/org/OpenDocument export failed: FIXME? >> >> *** A sub-subheader >> >> Here's a ref to the bookmark at [[target1]]. > > In this case, <> doesn't belong to any headline. What is the > expected output for [[target]]? Oh... right. But in that case, the output should be "No description for this link", as happens with HTML export. More helpful and informative than an export failure. In ODT, the link can be useful anyway, as the ODT output is a reference field that can be automatically updated to a different format, e.g. to refer to a page number instead of the (missing) headline text. Yours, Christian