浏览代码

Merge branch 'maint'

Bastien Guerry 11 年之前
父节点
当前提交
83a55c6f5b
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 1 1
      lisp/org.el
  2. 3 1
      lisp/ox-latex.el

+ 1 - 1
lisp/org.el

@@ -9377,7 +9377,7 @@ property to set."
 	   (save-excursion
 	     (org-back-to-heading t)
 	     (put-text-property
-	      (point-at-bol) (org-end-of-subtree t t) tprop p))))))))
+	      (point-at-bol) (outline-next-heading) tprop p))))))))
 
 
 ;;;; Link Stuff

+ 3 - 1
lisp/ox-latex.el

@@ -1071,7 +1071,9 @@ See `org-latex-text-markup-alist' for details."
      ;; and use "\\verb" command.
      ((eq 'verb fmt)
       (let ((separator (org-latex--find-verb-separator text)))
-	(concat "\\verb" separator text separator)))
+	(concat "\\verb" separator
+		(replace-regexp-in-string "\n" " " text)
+		separator)))
      ;; Handle the `protectedtexttt' special case: Protect some
      ;; special chars and use "\texttt{%s}" format string.
      ((eq 'protectedtexttt fmt)