[PATCH RFC V2] hgweb: code selection without line numbers in file source view

Matt Mackall mpm at selenic.com
Sun Jun 30 18:06:35 CDT 2013

On Sun, 2013-06-30 at 20:44 +0200, Laurens Holst wrote:
> Op 29-6-2013 23:09, Alexander Plavin schreef:
> >>> +  <li class="parity{parity} source" id="{lineid}"><div>{ifeq(strip(line,
> >>> '\r\n'), '', ' ', '')}{strip(line|escape, "\r\n")}</div></li>'
> >>
> >> I would use \u00A0 instead of  .
> > Why is this better?
> I don’t like the entities. <Insert some irrelevant reason about XML not 
> being able to understand HTML’s extended set of entities without a DTD 
> even though this is neither XML nor XHTML>. And it’s more bytes.
> In a Unicode world, no reason to not just output the actual character 
> you want.

Quiz: what happens when hgweb's output encoding is set to Windows

Quiz: what percentage of developers do you expect to have the _UTF-8_
byte sequence (never mind the raw Unicode) for nbsp memorized?

Quiz: how often do you use \x0d rather than \n when coding? how often is
it the right thing to do?

Mathematics is the supreme nostalgia of our time.

More information about the Mercurial-devel mailing list