mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-07 13:15:06 +00:00
ox-odt: Remove unnecessary space when no date
* ox-odt.el (org-odt-template): Remove unnecessary space in header when no date.
This commit is contained in:
parent
ce7b3fc74b
commit
398165f5a1
@ -1553,14 +1553,15 @@ original parsed data. INFO is a plist holding export options."
|
||||
(timestamp (and (not (cdr date))
|
||||
(eq (org-element-type (car date)) 'timestamp)
|
||||
(car date))))
|
||||
(concat
|
||||
(format "\n<text:p text:style-name=\"%s\">%s</text:p>"
|
||||
"OrgSubtitle"
|
||||
(if (and (plist-get info :odt-use-date-fields) timestamp)
|
||||
(org-odt--format-timestamp (car date))
|
||||
(org-export-data (plist-get info :date) info)))
|
||||
;; Separator
|
||||
"<text:p text:style-name=\"OrgSubtitle\"/>"))))))
|
||||
(when date
|
||||
(concat
|
||||
(format "\n<text:p text:style-name=\"%s\">%s</text:p>"
|
||||
"OrgSubtitle"
|
||||
(if (and (plist-get info :odt-use-date-fields) timestamp)
|
||||
(org-odt--format-timestamp (car date))
|
||||
(org-export-data date info)))
|
||||
;; Separator
|
||||
"<text:p text:style-name=\"OrgSubtitle\"/>")))))))
|
||||
;; Table of Contents
|
||||
(let* ((with-toc (plist-get info :with-toc))
|
||||
(depth (and with-toc (if (wholenump with-toc)
|
||||
|
Loading…
Reference in New Issue
Block a user