+2010-10-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * shr.el (shr-insert): Use string anchors instead of line anchors.
+
2010-10-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el: Add headings.
(t
(let ((first t)
column)
- (when (and (string-match "^[ \t\n]" text)
+ (when (and (string-match "\\`[ \t\n]" text)
(not (bolp)))
(insert " "))
(dolist (elem (split-string text))
(unless shr-start
(setq shr-start (point)))
(insert elem))
- (when (and (string-match "[ \t\n]$" text)
+ (when (and (string-match "[ \t\n]\\'" text)
(not (bolp)))
(insert " "))))))