0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:36:26 +00:00

org-exp-blocks: cleanup trailing newline after block

* lisp/org-exp-blocks.el (org-export-blocks-preprocess):
  cleanup trailing newline after block
This commit is contained in:
Eric Schulte 2010-06-16 10:23:39 -07:00
parent d45826943a
commit f6e4790099

View file

@ -178,7 +178,7 @@ specified in BLOCKS which default to the value of
(goto-char (point-min))
(setq start (point))
(while (re-search-forward
"^\\([ \t]*\\)#\\+begin_\\(\\S-+\\)[ \t]*\\(.*\\)?[\r\n]\\([^\000]*?\\)[\r\n][ \t]*#\\+end_\\S-+.*" nil t)
"^\\([ \t]*\\)#\\+begin_\\(\\S-+\\)[ \t]*\\(.*\\)?[\r\n]\\([^\000]*?\\)[\r\n][ \t]*#\\+end_\\S-+.*[\r\n]?" nil t)
(setq indentation (length (match-string 1)))
(setq type (intern (downcase (match-string 2))))
(setq headers (save-match-data (org-split-string (match-string 3) "[ \t]+")))