author | Stephen Boyd <bebarino@gmail.com> | |
Wed, 25 Nov 2009 03:51:40 +0000 (19:51 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 25 Nov 2009 08:06:32 +0000 (00:06 -0800) | ||
commit | 6821dee9a91131e1a003ee65b2f4218a19ea8f3d | |
tree | b6fee430e4d5e435d2fe2585b71dbed3baf263fa | tree | snapshot |
parent | 6aa2de51511bf847f6e69dfcfc9e7d977ef171a6 | commit | diff |
gitweb.js: fix padLeftStr() and its usage
It seems that in Firefox-3.5 inserting with javascript inserts the
literal instead of a space. Fix this by inserting the unicode
representation for 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 <bebarino@gmail.com>
Cc: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
It seems that in Firefox-3.5 inserting with javascript inserts the
literal instead of a space. Fix this by inserting the unicode
representation for 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 <bebarino@gmail.com>
Cc: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.js | diff | blob | history |