mirror of
https://gitlab.com/Titan-C/org-cv.git
synced 2024-12-22 12:39:06 +00:00
correct way of dealing with multi-line address
This commit is contained in:
parent
8174657679
commit
e1720f9809
1 changed files with 2 additions and 8 deletions
|
@ -67,13 +67,6 @@
|
|||
:translate-alist '((template . org-moderncv-template)
|
||||
(headline . org-moderncv-headline)))
|
||||
|
||||
(defun org-moderncv--add-latex-newlines (string)
|
||||
"Replace regular newlines in STRING with LaTeX newlines.
|
||||
|
||||
(i.e. `\\\\')"
|
||||
(let ((str (org-trim string)))
|
||||
(when (org-string-nw-p str)
|
||||
(concat (replace-regexp-in-string "\n" "\\\\\\\\\n" str) "\\\\"))))
|
||||
|
||||
;;;; Template
|
||||
;;
|
||||
|
@ -124,7 +117,8 @@ holding export options."
|
|||
(when homepage (format "\\homepage{%s}\n" homepage)))
|
||||
;; address
|
||||
(let ((address (org-export-data (plist-get info :address) info)))
|
||||
(when address (format "\\address{%s}\n" (org-moderncv--add-latex-newlines address))))
|
||||
(when address (format "\\address%s\n" (mapconcat (lambda (line) (format "{%s}" line))
|
||||
(split-string address "\n") ""))))
|
||||
(mapconcat (lambda (social-network)
|
||||
(let ((command (org-export-data (plist-get info
|
||||
(car social-network))
|
||||
|
|
Loading…
Reference in a new issue