mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-12-29 11:02:33 +00:00
Fix bug in ASCII export
* lisp/org-ascii.el (org-ascii-level-start): Catch the case of levels which do not have an equivalent in the list of underline characters. For more information see http://thread.gmane.org/gmane.emacs.orgmode/36097
This commit is contained in:
parent
20a3c2a6b6
commit
4007c1cdce
@ -652,7 +652,9 @@ publishing directory."
|
||||
(if (or (not (equal (char-before) ?\n))
|
||||
(not (equal (char-before (1- (point))) ?\n)))
|
||||
(insert "\n"))
|
||||
(setq char (nth (- umax level) (reverse org-export-ascii-underline)))
|
||||
(setq char (or (nth (max (- umax level) 0)
|
||||
(reverse org-export-ascii-underline))
|
||||
(last org-export-ascii-underline)))
|
||||
(unless org-export-with-tags
|
||||
(if (string-match (org-re "[ \t]+\\(:[[:alnum:]_@#%:]+:\\)[ \t]*$") title)
|
||||
(setq title (replace-match "" t t title))))
|
||||
|
Loading…
Reference in New Issue
Block a user