[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: ox-odt.el should support text:start-value [9.1.14 (9.1.14-
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Bug: ox-odt.el should support text:start-value [9.1.14 (9.1.14-7-g01c419-elpaplus @ …/org-plus-contrib-20181015/)] |
Date: |
Fri, 19 Oct 2018 00:19:26 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
"Mark A. Hershberger" <address@hidden> writes:
> Working code changes:
>
> diff -ub org-plus-contrib-20181008/ox-odt.el\~
> org-plus-contrib-20181008/ox-odt.el
> --- org-plus-contrib-20181008/ox-odt.el~ 2018-10-12 19:13:13.095335320
> -0400
> +++ org-plus-contrib-20181008/ox-odt.el 2018-10-17 22:10:30.194483160
> -0400
> @@ -1966,10 +1966,13 @@
> 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<text:list-item>\n%s\n%s"
> + (format (concat "\n<text:list-item"
> + (when count (concat (format " text:start-value=\"%s\""
> count)))
> + ">\n%s\n%s")
> contents
> (if (org-element-map item 'table #'identity info 'first-match)
> "</text:list-header>"
Thank you.
Could you provide a patch using git format-patch, with a proper commit
message? Also, if you haven't signed FSF papers, please add TINYCHANGE
at the end of the commit message.
Regards,
--
Nicolas Goaziou