Browse Source

Fix bug with display properties in resulting .html buffer

Carsten Dominik 15 years ago
parent
commit
01b1851f2d
2 changed files with 5 additions and 0 deletions
  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))