[PATCH 1/2] stkutil: convert text attributes to html
Kristen Carlson Accardi
kristen at linux.intel.com
Mon Jun 21 20:17:16 PDT 2010
On Mon, 21 Jun 2010 19:51:06 -0700
Kristen Carlson Accardi <kristen at linux.intel.com> wrote:
> On Tue, 22 Jun 2010 00:45:39 +0200
> andrzej zaborowski <balrogg at gmail.com> wrote:
>
> > Can we always end_format() and start_format() when the formatting
> > changes, and just once instead of in a loop? Here's a test case that
> > I'm worried about:
> >
> > text is "abc"
> > attribute 1 (red text) starts at 0, len 2
> > attribute 2 (blue text) starts at 1, len 2
> >
> > the generated html, by my reading will look like this:
> > <span style="color: red;">a<span style="color: blue;">b</span>c</span>
>
> I ran this test just to make sure, the generated html is not as
> you fear and is correct (I used different colors though)
>
> <html><body><span style="color: #347235;background-color: #FFFFFF;">a<span style="color: #0000A0;background-color: #FFFFFF;">b</span></span>c</body></html>
Hum, ok, this is not correct.... I see your concern and will fix.
More information about the ofono
mailing list