From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mark A. Hershberger" Subject: =?UTF-8?B?UmU6IEJ1Zzogb3gtb2R0LmVsIHNob3VsZCBzdXBwb3J0IHRleHQ6?= =?UTF-8?B?c3RhcnQtdmFsdWUgWzkuMS4xNCAoOS4xLjE0LTctZzAxYzQxOS1lbHBhcGx1?= =?UTF-8?B?cyBAIOKApi9vcmctcGx1cy1jb250cmliLTIwMTgxMDE1Lyld?= Date: Fri, 19 Oct 2018 09:45:47 -0400 Message-ID: <874ldiaw38.fsf@everybody.org> References: <87r2gom1qx.fsf@everybody.org> <87va5y6gpd.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDV6K-0002K5-Qy for emacs-orgmode@gnu.org; Fri, 19 Oct 2018 09:46:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDV6E-00039g-Vz for emacs-orgmode@gnu.org; Fri, 19 Oct 2018 09:46:04 -0400 Received: from nospam.nichework.com ([206.71.169.33]:59481) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gDV6E-000383-Km for emacs-orgmode@gnu.org; Fri, 19 Oct 2018 09:45:58 -0400 Received: from localhost (localhost.localdmain [127.0.0.1]) by nospam.nichework.com (Postfix) with ESMTP id 64843B400B for ; Fri, 19 Oct 2018 09:45:30 -0400 (EDT) Received: from nospam.nichework.com ([127.0.0.1]) by localhost (nospam.nichework.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F3QrH3+2MAq2 for ; Fri, 19 Oct 2018 09:45:30 -0400 (EDT) Received: from mail.nichework.com (mail.nichework.com [108.161.151.158]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by nospam.nichework.com (Postfix) with ESMTPS id 0FA32B400C for ; Fri, 19 Oct 2018 09:45:30 -0400 (EDT) Received: from mail.nichework.com (localhost.localdomain [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTPS id B593E4E096F for ; Fri, 19 Oct 2018 06:45:55 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTP id A83064E0A46 for ; Fri, 19 Oct 2018 06:45:55 -0700 (PDT) Received: from mail.nichework.com ([127.0.0.1]) by localhost (mail.nichework.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id cZYOi1mqKP5S for ; Fri, 19 Oct 2018 06:45:55 -0700 (PDT) Received: from slink.everybody.org (unknown [24.229.149.248]) by mail.nichework.com (Postfix) with ESMTPSA id 4AC7D4E096F for ; Fri, 19 Oct 2018 06:45:55 -0700 (PDT) In-Reply-To: <87va5y6gpd.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 19 Oct 2018 00:19:26 +0200") 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" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Nicolas Goaziou writes: > Could you provide a patch using git format-patch, with a proper commit > message? Attached. Also see . > Also, if you haven't signed FSF papers, please add TINYCHANGE at the > end of the commit message. I have signed papers on file. Mark. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Add-support-for-text-start-value-to-ox-odt.el.patch >From 91cb08df2473c70b7817c37ae0744e051964ad07 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Fri, 19 Oct 2018 09:19:38 -0400 Subject: [PATCH] Add support for text:start-value to ox-odt.el ODF supports starting lists at a set number via text:start-value. Without this, ODF files just restart numbering when they should continue with the specified number. --- lisp/ox-odt.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 70ef9de2e..b9a81f74d 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -1966,10 +1966,13 @@ contextual information." CONTENTS holds the contents of the item. INFO is a plist holding contextual information." (let* ((plain-list (org-export-get-parent item)) + (count (org-element-property :counter item)) (type (org-element-property :type plain-list))) (unless (memq type '(ordered unordered descriptive-1 descriptive-2)) (error "Unknown list type: %S" type)) - (format "\n\n%s\n%s" + (format (concat "\n\n%s\n%s") contents (if (org-element-map item 'table #'identity info 'first-match) "" -- 2.19.1 --=-=-=--