瀏覽代碼

Fix bug with display properties in resulting .html buffer

Carsten Dominik 15 年之前
父節點
當前提交
01b1851f2d
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 3 0
      lisp/ChangeLog
  2. 2 0
      lisp/org-html.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2010-01-04  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-html.el (org-export-as-html): Remove any left-over display
+	properties in the html file.
+
 	* org-wl.el (org-wl-store-link): Work-around for format bug with
 	text properties.
 

+ 2 - 0
lisp/org-html.el

@@ -1474,6 +1474,8 @@ lang=\"%s\" xml:lang=\"%s\">
       ;; Remove empty lines at the beginning of the file.
       (goto-char (point-min))
       (when (looking-at "\\s-+\n") (replace-match ""))
+      ;; Remove display properties
+      (remove-text-properties (point-min) (point-max) '(display t))
       ;; Run the hook
       (run-hooks 'org-export-html-final-hook)
       (or to-buffer (save-buffer))