]> git.ipfire.org Git - thirdparty/git.git/commit - gitweb/gitweb.perl
gitweb: Use character or octal escape codes (and add span.cntrl) in esc_path
authorJakub Narebski <jnareb@gmail.com>
Wed, 8 Nov 2006 10:50:07 +0000 (11:50 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 8 Nov 2006 20:34:03 +0000 (12:34 -0800)
commit1d3bc0cc0aaa056ae07a08bccc056e62d42046e8
tree3bc14a44ce51620afca58c1e520dc9b85515029c
parent403d0906e9876871a7913554be4caa93f21f1d15
gitweb: Use character or octal escape codes (and add span.cntrl) in esc_path

Instead of simply hiding control characters in esc_path by replacing
them with '?', use Character Escape Codes (CEC) i.e. alphabetic
backslash sequences like those found in C programming language and
many other languages influenced by it, such as Java and Perl.  If
control characted doesn't have corresponding character escape code,
use octal char sequence to escape it.

Alternatively, controls can be replaced with Unicode Control
Pictures U+2400 - U+243F (9216 - 9279), the Unicode characters
reserved for representing control characters when it is
necessary to print or display them.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl