2010-10-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
+ * shr.el (shr-tag-p): Don't insert newlines at the start of the
+ buffer.
+
+ * mm-decode.el (mm-shr): Narrow before inserting, so that shr can know
+ when it's at the start of the buffer.
+
* shr.el (shr-tag-blockquote): Convert name.
(shr-rescale-image): Use the right image-size variant.
(let ((article-buffer (current-buffer)))
(unless handle
(setq handle (mm-dissect-buffer t)))
- (shr-insert-document
- (mm-with-part handle
- (libxml-parse-html-region (point-min) (point-max))))))
+ (save-restriction
+ (narrow-to-region (point) (point))
+ (shr-insert-document
+ (mm-with-part handle
+ (libxml-parse-html-region (point-min) (point-max)))))))
(provide 'mm-decode)