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

babel: org-babel-clean-text-properties now checks for valid argument

  thanks to Michael Sperber for pointing this out
Eric Schulte преди 15 години
родител
ревизия
2139651c0d
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      contrib/babel/lisp/org-babel.el

+ 2 - 1
contrib/babel/lisp/org-babel.el

@@ -1235,7 +1235,8 @@ block but are passed literally to the \"example-block\"."
 
 (defun org-babel-clean-text-properties (text)
   "Strip all properties from text return."
-  (set-text-properties 0 (length text) nil text) text)
+  (when text
+    (set-text-properties 0 (length text) nil text) text))
 
 (defun org-babel-strip-protective-commas (body)
   "Strip protective commas from bodies of source blocks."