Преглед на файлове

Require a newline and spaces before a code block.

* lisp/org-exp-blocks.el (org-export-blocks-preprocess): Require a
  newline and spaces before a code block.
Eric Schulte преди 13 години
родител
ревизия
f48321a9ac
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lisp/org-exp-blocks.el

+ 1 - 1
lisp/org-exp-blocks.el

@@ -178,7 +178,7 @@ which defaults to the value of `org-export-blocks-witheld'."
 	    (let* ((match-start (copy-marker (match-beginning 0)))
 		   (body-start (copy-marker (match-end 0)))
 		   (indentation (length (match-string 1)))
-		   (inner-re (format "[\r\n]*[ \t]*#\\+\\(begin\\|end\\)_%s"
+		   (inner-re (format "[\r\n][ \t]*#\\+\\(begin\\|end\\)_%s"
 				     (regexp-quote (downcase (match-string 2)))))
 		   (type (intern (downcase (match-string 2))))
 		   (headers (save-match-data