[PATCH] hgweb: render tabs to 8 spaces (v2)

Rocco Rutte pdmef at gmx.net
Thu May 14 14:04:13 CDT 2009


Hi,

* Brendan Cully wrote:
> On Thursday, 14 May 2009 at 13:07, Matt Mackall wrote:

> > I would prefer that we instead focus on making real tabs work in hgweb
> > properly again.

> The div is already white-space: pre, which should do something halfway
> sensible for tabs. I think it's just an alignment problem within the
> line. The attached little hack (not a full fix, just a demo) makes the
> filebrowser look pretty good on my firefox 3.0.10.

Hmm, this adds quite some space between line numbers and the line itself.
If that's acceptable: it also seems to work for annotate (though that can
be solved by using 3 columns for the table). For diff, lines with tabs
are off-by-1 for me.

What should I do? Send another one using str.expandtabs as suggested?
Try that hack in other templates?

Rocco



More information about the Mercurial-devel mailing list