From 83421c072a6aa0f1483632625e8fb4e5f2043e1d Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 6 Feb 2022 20:57:36 +0100 Subject: [PATCH] Remove trailing whitespace after HTML rendering a file Those whitespaces are neither necessary nor helpful. --- site-lisp/db-utils.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site-lisp/db-utils.el b/site-lisp/db-utils.el index c540219..9ed7576 100644 --- a/site-lisp/db-utils.el +++ b/site-lisp/db-utils.el @@ -460,7 +460,8 @@ Does not replace CRLF with CRCRLF, and so on." (interactive "f") (unless (file-readable-p file) (user-error "Cannot read file: %s" file)) - (shr-render-buffer (find-file-noselect file))) + (shr-render-buffer (find-file-noselect file)) + (delete-trailing-whitespace)) ;; Base45 Decoding