ox-odt: Add support for text:start-value
* lisp/ox-odt.el (org-odt-item): Support 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.
This commit is contained in:
parent
1f913ecc36
commit
eb806aa503
|
@ -48,6 +48,7 @@ system than the main Org document. For example:
|
||||||
#+end_example
|
#+end_example
|
||||||
|
|
||||||
*** New values in clock tables' step: =month= and =year=
|
*** New values in clock tables' step: =month= and =year=
|
||||||
|
*** ODT export handles numbers cookies in lists
|
||||||
*** New cell movement functions in tables
|
*** New cell movement functions in tables
|
||||||
~S-<UP>~, ~S-<DOWN>~, ~S-<RIGHT>~, and ~S-<LEFT>~ now move cells in
|
~S-<UP>~, ~S-<DOWN>~, ~S-<RIGHT>~, and ~S-<LEFT>~ now move cells in
|
||||||
the corresponding direction by swapping with the adjacent cell.
|
the corresponding direction by swapping with the adjacent cell.
|
||||||
|
|
|
@ -1966,10 +1966,12 @@ contextual information."
|
||||||
CONTENTS holds the contents of the item. INFO is a plist holding
|
CONTENTS holds the contents of the item. INFO is a plist holding
|
||||||
contextual information."
|
contextual information."
|
||||||
(let* ((plain-list (org-export-get-parent item))
|
(let* ((plain-list (org-export-get-parent item))
|
||||||
|
(count (org-element-property :counter item))
|
||||||
(type (org-element-property :type plain-list)))
|
(type (org-element-property :type plain-list)))
|
||||||
(unless (memq type '(ordered unordered descriptive-1 descriptive-2))
|
(unless (memq type '(ordered unordered descriptive-1 descriptive-2))
|
||||||
(error "Unknown list type: %S" type))
|
(error "Unknown list type: %S" type))
|
||||||
(format "\n<text:list-item>\n%s\n%s"
|
(format "\n<text:list-item%s>\n%s\n%s"
|
||||||
|
(if count (format " text:start-value=\"%s\"" count) "")
|
||||||
contents
|
contents
|
||||||
(if (org-element-map item 'table #'identity info 'first-match)
|
(if (org-element-map item 'table #'identity info 'first-match)
|
||||||
"</text:list-header>"
|
"</text:list-header>"
|
||||||
|
|
Loading…
Reference in New Issue