|
| From: | Mark A. Hershberger |
| 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: | Wed, 17 Oct 2018 22:23:34 -0400 |
| User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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>"
Diff finished. Wed Oct 17 22:11:23 2018
| [Prev in Thread] | Current Thread | [Next in Thread] |