[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master b778e71af7 3/5: Preserve <title> in the Emacs manuals
From: |
Lars Ingebrigtsen |
Subject: |
master b778e71af7 3/5: Preserve <title> in the Emacs manuals |
Date: |
Mon, 4 Jul 2022 07:08:47 -0400 (EDT) |
branch: master
commit b778e71af7ca8c59917334b4bb1b34cdb52faca9
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Preserve <title> in the Emacs manuals
* admin/admin.el (manual-html-fix-headers): Preserve the <title>
element (bug#48334).
---
admin/admin.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/admin/admin.el b/admin/admin.el
index 2d809313ca..c84287a702 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -488,10 +488,11 @@ the @import directive."
(delete-region opoint (point))
(search-forward "<meta http-equiv=\"Content-Style")
(setq opoint (match-beginning 0)))
+ (search-forward "<title>")
+ (delete-region opoint (match-beginning 0))
(search-forward "</title>\n")
- (delete-region opoint (point))
- (search-forward "<link href=")
- (goto-char (match-beginning 0))
+ (when (search-forward "<link href=" nil t)
+ (goto-char (match-beginning 0)))
(insert manual-links-string)
(setq opoint (point))
(search-forward "</head>")