changeset 83:8e82ac8512d2

more html handling
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Thu, 02 Jul 2026 10:09:43 +0100
parents e75e61ad9ae1
children 72f455f3cec1
files my-news.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/my-news.el	Thu Jul 02 10:09:04 2026 +0100
+++ b/my-news.el	Thu Jul 02 10:09:43 2026 +0100
@@ -810,7 +810,7 @@
 
 (defun use-text-not-html (&optional clear)
   (when (and (if clear (looking-at "<html")
-	       (looking-at "> <\\(html\\|div\\)"))
+	       (looking-at "> <\\(!doctype\\|html\\|div\\)"))
 	     (bufferp (get-buffer "*Shell Command Output*")))
     ;; replace HTML only with result of my HTML filter
     (delete-region (point)(mark t))