From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id SB1CIdbQD2apmgAAe85BDQ:P1 (envelope-from ) for ; Fri, 05 Apr 2024 12:22:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id SB1CIdbQD2apmgAAe85BDQ (envelope-from ) for ; Fri, 05 Apr 2024 12:22:14 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cBt4xrts; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712312534; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XfWv2sn1CMXY3v5Qv5Cm/ZoB9n9BVLaT5B202qzNs2g=; b=MbctLZqb38EWBoBaWz3nmYoQ88sWO9IUKkwbwO7pMnqmLDWv0OR7YrfyPvz5ptOViFt4/T Td0GoBhHMlkKc5D4N6Wlnisduqu6hPwF6GC8tkZTyb616GfPWuXc5rpPe7HjuDXWCnW4fy IBMY4uNRqkpfJq2TN/vpykXQDQuE75cDLLGm3R9iLkTx64brAtnDxwqOFrKCR+rWwpkuzo x2cFaZEJL2r1iXqO0mngvBz4Easgdgrk+BH8fy/GCT0AZ1ps3S5lwoV2Z7HaQOniNiRHxe xxN8dxagEyRYwQ1bBjYrFj0+4ui1Pzrxh6LrSH9WMIudT21I0eobCycUgynw9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cBt4xrts; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712312534; a=rsa-sha256; cv=none; b=FZXmFpg5sBV4+bHUEyxJ4l1Y2pGcWY0cdDyvNYySWwX0GEfbXggPDkjOuK6dE+/KkW9a9r RtF5ak6CSaG6kWnkhcKF1h1fMkCykKQHrF5W6Dz8l786SSL0LqNDij+5AD86M7QwtSlPNh RdaTFgjHaX01g9LGB2HemQQXZFtiCsytpBNklr/ffXxOp0vLcY6mSUc8cYkYQ3ddilEmKX EE2jvy3133kvsRuHrRODp3gMFqDbUx5ui5bAlC4+4GW7/EbtDvempCtw9jHvhZ1bVBmvfb vwk1ztHEW4DLobA2Zox3uyMvQgSr2+ScZbfL/U6n4Qf9S07yJWdk3+y9F3XqJA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 39AEC77599 for ; Fri, 05 Apr 2024 12:22:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsghF-0004sr-Bz; Fri, 05 Apr 2024 06:21:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rsghD-0004si-Le for emacs-orgmode@gnu.org; Fri, 05 Apr 2024 06:21:19 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rsghB-0002zj-5f for emacs-orgmode@gnu.org; Fri, 05 Apr 2024 06:21:19 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B384924002A for ; Fri, 5 Apr 2024 12:21:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1712312473; bh=qr9ypRhXsXBTz6V/8s0NKrKV0c99BNIhixKc/fSBUuM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=cBt4xrtsvPTpgX6qE8VfDBVR1dEHc6vzRq1jxdcVjEPlGPnqpXoRhBvLgGyMylH51 LejCARbZ9WTsN1jIFJLi4k5MPvZhZOmBu8EqTz/jGgbbhLt6YsWcCkFOBPrJFMaTux DdfzmsRE69g2NCA+nrZM52nWUDO6XI0gdDWcPd1vHvCIXU7zLxJo+7IkpScZmwG5Mq Lod7v6JIKm6mXPZg3XXJtJioYJ4mNa0V27VFa/r9MUwz8nxaUCl0m1P+2U9jNGnB5g BRL9HxR7pLcBV+iEc4luqfhNQ5JyeA2A0qvSwxglpYrqklFISNLaBYH3GXY13JAGYY ORHs6K/Ui3aqw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V9vf03bLGz6ty8; Fri, 5 Apr 2024 12:21:12 +0200 (CEST) From: Ihor Radchenko To: Ihor Radchenko Cc: Christian Moe , emacs-orgmode@gnu.org Subject: Re: [ODT][BUG] Format error on export with table in list structure In-Reply-To: <87edxn9z7n.fsf@localhost> References: <87a68bhk84.fsf@christianmoe.com> <87edxn9z7n.fsf@localhost> Date: Fri, 05 Apr 2024 10:21:25 +0000 Message-ID: <87zfu8qfdm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.45 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -9.45 X-Migadu-Queue-Id: 39AEC77599 X-TUID: 2nNHZvjIkYNK Ihor Radchenko writes: >> Consider the following minimal example, a nested list with a table in a >> sub-item (regardless of list types and empty lines): >> >> #+BEGIN_EXAMPLE >> 1. List item >> - Sub-item >> | Table | >> #+END_EXAMPLE >> >> This causes a format error on ODT export (I'm running Org version >> 9.5.4). In the content.xml file, just before the final closing >> tag, there appears a tag without a >> corresponding opening tag, invalidating the XML. > > Confirmed. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=ef4364287 Note that ODT format does not allow tables inside lists, so we do nothing better than a workaround. It is generally not a good idea to export documents like this to odt. There is still a bug in a similar scenario when the table is nested even further: 1. List item - Sub-item #+begin_textbox | Table | #+end_textbox I added a FIXME to the code. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d491a74fd -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at