[kupu-dev] Kupu says links are bad when they aren't

Duncan Booth duncan.booth at suttoncourtenay.org.uk
Fri Apr 13 16:07:37 CEST 2007


sisi <sisi at foei.org> wrote:

> Could you modify your regular expression matching to cope with new lines 
> dotted around in the html? If you don't have time for this we will try 
> to run our html through another script to get rid of those new lines, 
> but we think they're pretty common so maybe it would be worth taking 
> this into consideration for kupu, as the layout of the HTML text is 
> independent of the meaning. I am pasting an example bit of code that the 
> kupu line code chokes on below.
> 
> Thanks again,
> sisi
> 
><a href="../index.html"><img src=
>                     "../../images/linkhead.gif" width="200" height=
>                     "76" alt="link" border="0"></a>
> 

Ugh. I didn't know you could put spaces around the '=' in an HTML attribute 
value: you can't of course in XML, but HTML isn't XML.

Ok, I checked in something which should fix this.



More information about the kupu-dev mailing list