Browse Source

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.
Alan Schmitt 11 years ago
parent
commit
9d39aaeac3
1 changed files with 3 additions and 2 deletions
  1. 3 2
      contrib/lisp/ox-koma-letter.el

+ 3 - 2
contrib/lisp/ox-koma-letter.el

@@ -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