aboutsummaryrefslogtreecommitdiff
path: root/publish.el
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-02-17 19:40:21 +1100
committerYuchen Pei <hi@ypei.me>2022-02-17 19:40:21 +1100
commit87973ec8a51d55ecfd4131b56d16656fbd698f96 (patch)
tree0f0c909bd5623601e6049dc2aa59f5b5921506e2 /publish.el
parentd4ed7d7df524e397fbcdae5e25e1e13b4f10b4a3 (diff)
updated css and fixed problem with trailing empty lines
Diffstat (limited to 'publish.el')
-rw-r--r--publish.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/publish.el b/publish.el
index 9581a6e..4b7274c 100644
--- a/publish.el
+++ b/publish.el
@@ -60,7 +60,9 @@ The content starts with the first empty line."
(when (and (file-readable-p file) (not (directory-name-p file)))
(with-temp-buffer
(insert-file-contents file)
- (delete-trailing-whitespace) ;; important, otherwise org may truncate the sitemap, probably due to some problem in converting all things to a list
+ ;; important, otherwise org may truncate the sitemap, probably
+ ;; due to some problem in converting all things to a list
+ (delete-trailing-whitespace)
(goto-char (point-min))
(let ((beg (+ 1 (re-search-forward "^$"))))
(buffer-substring beg (point-max)))))))