[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fontification bug
- From: Kahlil HODGSON <dorge@xxxxxxxxxx>
- Date: Fri, 20 Sep 2002 14:19:42 +1000
- X-ml-name: emacs-w3m
- X-mail-count: 03933
Hi Guys,
I spotted a fontification bug in emacs-w3m will browsing some Red Hat
manuals. We need to be able to handle cases like the following:
<b
class="someclass"
>
some text
</b
>
A patch to fix this is appended below. Hmmmm ... there are probably other,
less common, instances of this type of bug :(
By the way w3m and emacs-w3m are excellent pieces of work!
Cheers!
Kal.
diff -r emacs-w3m-1.3.2.orig/w3m.el emacs-w3m-1.3.2/w3m.el
2121c2121
< (while (search-forward "<b>" nil t)
---
> (while (re-search-forward "<b[^>]*>" nil t)
2124c2124
< (when (search-forward "</b>" nil t)
---
> (when (re-search-forward "</b[^>]*>" nil t)
2131c2131
< (while (search-forward "<u>" nil t)
---
> (while (re-search-forward "<u[^>]*>" nil t)
2134c2134
< (when (search-forward "</u>" nil t)
---
> (when (re-search-forward "</u[^>]*>" nil t)
5251c5251
<
---
>
5255c5255
<
---
>