gnus-art.el (gnus-article-browse-html-parts): Replace LWSPs with ` 's in header
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 27 Nov 2013 01:59:25 +0000 (01:59 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 27 Nov 2013 01:59:25 +0000 (01:59 +0000)
lisp/ChangeLog
lisp/gnus-art.el

index e302b40..ed12191 100644 (file)
@@ -1,5 +1,8 @@
 2013-11-27  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * gnus-art.el (gnus-article-browse-html-parts):
+       Replace LWSPs with `&nbsp;'s in header.
+
        Work for broken Chinese articles.
 
        * gnus-art.el (gnus-article-browse-html-save-cid-content):
index fd9323f..7161b9a 100644 (file)
@@ -2896,6 +2896,13 @@ message header will be added to the bodies of the \"text/html\" parts."
                                          ((match-beginning 3) "&amp;")
                                          (t "<br>\n"))))
                   (goto-char (point-min))
+                  (while (re-search-forward "^[\t ]+" nil t)
+                    (dotimes (i (prog1
+                                    (current-column)
+                                  (delete-region (match-beginning 0)
+                                                 (match-end 0))))
+                      (insert "&nbsp;")))
+                  (goto-char (point-min))
                   (insert "<div align=\"left\">\n")
                   (goto-char (point-max))
                   (insert "</div>\n<hr>\n")