]> Lady’s Gitweb - Gitweb/commit
gitweb.js: fix padLeftStr() and its usage
authorStephen Boyd <redacted>
Wed, 25 Nov 2009 03:51:40 +0000 (19:51 -0800)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
commit67c4b962f002a1cec72af35bfbec00455d8a9b0e2c250d9c0717f9c29f371bfd
tree9c09eb1497807de507ad15e9a7a178dc4eca91296d72ce071d0dfcd68fb7e5f5
parent3e2dac3f3df399d9563822ef1ed90bb5a776d39e49e00d1f2d6a7133a9ed3afb
gitweb.js: fix padLeftStr() and its usage

It seems that in Firefox-3.5 inserting &nbsp; with javascript inserts the
literal &nbsp; instead of a space. Fix this by inserting the unicode
representation for &nbsp; instead.

Also fix the off-by-one error in the padding calculation that was
causing one less space to be inserted than was requested by the caller.

Signed-off-by: Stephen Boyd <redacted>
Cc: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.js
This page took 0.216015 seconds and 4 git commands to generate.