Browse Source

Merge branch 'maint'

Nicolas Goaziou 11 năm trước cách đây
mục cha
commit
87234bee55
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 1 1
      lisp/ob-python.el
  2. 2 1
      lisp/ox-md.el

+ 1 - 1
lisp/ob-python.el

@@ -136,7 +136,7 @@ specifying a variable of the same value."
     (if (equal var 'hline)
 	org-babel-python-hline-to
       (format
-       (if (and (stringp var) (string-match "[\n\r]" var)) "\"\"%s\"\"" "%s")
+       (if (and (stringp var) (string-match "[\n\r]" var)) "\"\"%S\"\"" "%S")
        var))))
 
 (defun org-babel-python-table-or-string (results)

+ 2 - 1
lisp/ox-md.el

@@ -255,7 +255,8 @@ a communication channel."
 	      (off "[ ] "))
 	    (let ((tag (org-element-property :tag item)))
 	      (and tag (format "**%s:** "(org-export-data tag info))))
-	    (org-trim (replace-regexp-in-string "^" "    " contents)))))
+	    (and contents
+		 (org-trim (replace-regexp-in-string "^" "    " contents))))))