Koma export: Tweak the logic to output fromaddress

* ox-koma-letter.el (org-koma-letter-template): Do not output
`fromaddress' when it is a string of white spaces.
(org-koma-letter-use-title): Fix typo in the documentation string.
This commit is contained in:
Alan Schmitt 2014-03-10 15:14:11 +01:00
parent 28ddf07a56
commit 9d39aaeac3
1 changed files with 3 additions and 2 deletions

View File

@ -339,7 +339,7 @@ This option can also be set with the OPTIONS keyword, e.g.:
(defcustom org-koma-letter-use-title t
"Non-nil means use a title in the letter if present.
This option can also be set with the OPTIONS keyword,
e.g. \"with-title:nil\".
e.g. \"title:nil\".
See also `org-koma-letter-prefer-subject' for the handling of
title versus subject."
@ -617,7 +617,8 @@ holding export options."
(org-koma-letter--build-settings 'buffer info)
;; From address.
(let ((from-address (org-koma-letter--determine-to-and-from info 'from)))
(and from-address (format "\\setkomavar{fromaddress}{%s}\n" from-address)))
(when (org-string-nw-p from-address)
(format "\\setkomavar{fromaddress}{%s}\n" from-address)))
;; Date.
(format "\\date{%s}\n" (org-export-data (org-export-get-date info) info))
;; Document start