Skip to content

Commit 3032721

Browse files
committed
Version 0.3.1 (no more instant, minor updates).
1 parent 9bf0d0d commit 3032721

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

org-preview-html.el

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;; Original author of org-preview-html (until 2021-09): DarkSun <[email protected]>
77
;; Url: https://github.com/jakebox/org-preview-html
88
;; Keywords: Org, convenience, outlines
9-
;; Version: 0.3
9+
;; Version: 0.3.1
1010
;; Package-Requires: ((emacs "25.1") (org "8.0"))
1111

1212
;; This file is NOT part of GNU Emacs.
@@ -148,7 +148,7 @@ Obselete as of version 0.3, instead use `org-preview-html-subtree-only'."
148148
(set-window-start nil eww-window-start)))))))
149149

150150
(defun org-preview-html--kill-preview-buffer ()
151-
"Kill the xwidget preview buffer and pop back to the previewed org buffer."
151+
"Kill the preview buffer and pop back to the previewed org buffer."
152152
;; Only do these things if the preview is around
153153
(when (bound-and-true-p org-preview-html--browser-buffer)
154154
;; If preview is visible we first delete the window, otherwise
@@ -198,8 +198,7 @@ Obselete as of version 0.3, instead use `org-preview-html-subtree-only'."
198198
"Open a browser to preview the exported HTML file."
199199
;; Store the exported HTML filename
200200
(setq-local org-preview-html--html-file (concat (file-name-sans-extension buffer-file-name) ".html"))
201-
(unless (file-exists-p org-preview-html--html-file)
202-
(org-preview-html--org-export-html)) ;; Unless the file already exists, export it
201+
(org-preview-html--org-export-html)) ;; Export the org file to HTML
203202
;; Procedure to open the side-by-side preview
204203
(split-window-right)
205204
(other-window 1)

0 commit comments

Comments
 (0)