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

Laurens Holst laurens.nospam at grauw.nl
Sun Jun 30 13:44:13 CDT 2013

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.


More information about the Mercurial-devel mailing list