mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-25 07:27:57 +00:00
org-md: Fix spurious white space in Setext style
* contrib/lisp/org-md.el (org-md-headline): Fix spurious white space in Setext style.
This commit is contained in:
parent
7b6e6e9ff5
commit
029e499939
@ -160,9 +160,9 @@ a communication channel."
|
||||
(mapconcat 'identity tag-list ":"))))))
|
||||
(priority (and (plist-get info :with-priority)
|
||||
(org-element-property :priority headline)))
|
||||
(heading (concat (and todo (concat " " todo))
|
||||
(and priority (concat " " priority))
|
||||
" " title)))
|
||||
(heading (concat (and todo (concat todo " "))
|
||||
(and priority (concat priority " "))
|
||||
title)))
|
||||
(cond
|
||||
;; Cannot create an headline. Fall-back to a list.
|
||||
((or (org-export-low-level-p headline info)
|
||||
@ -186,7 +186,9 @@ a communication channel."
|
||||
"\n\n"
|
||||
contents))
|
||||
;; Use "atx" style.
|
||||
(t (concat (make-string level ?#) heading (and tags (concat " " tags))
|
||||
(t (concat (make-string level ?#) " "
|
||||
heading
|
||||
(and tags (concat " " tags))
|
||||
"\n\n"
|
||||
contents))))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user