]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/gnus/gnus-art.el (gnus-article-browse-html-parts): Replace LWSPs with `&nbsp...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 27 Nov 2013 01:59:37 +0000 (01:59 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 27 Nov 2013 01:59:37 +0000 (01:59 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el

index 1e332154118bb81c2129106493cf2f5d89b62ae2..eee75f7194f141b7987ce62e8f3d2e7d359b3e8a 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 b939fa6452330211f0b74c5e4420da36605f034a..a902cb9024a30e8bfd86cd9c85cb358c8982d8ff 100644 (file)
@@ -2895,6 +2895,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")