git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] gitweb: Use character or octal escape codes (and add span.cntrl) in esc_path

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 8, 2006, 18:56 UTC
Message-ID
<200611081956.20251.jnareb@gmail.com>
In-Reply-To
<7vmz71u787.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 13 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
> 
>> 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.
>>
>> Additionally use 'span' element with 'cntrl' attribute to mark escaped
>> control characters. Add style for span.cntrl in the CSS.
> 
> Would have preferred the 'span' thing to be part of [1/2]...
I've misunderstood you then. I'm sorry.
> Didn't I ask quot to be freestanding sub, not nested?  That
> would make UPR vs CEC experiments easier and more pleasant.

In what way having freestanding and not nested sub would "make UPR vs CEC experiments easier and more pleasant"?

If it is important, I can send patch moving quot sub outside esc_path (and perhaps also unq sub outside unquote), or send corrected patch... or you can correct patch by hand...

-- 
Jakub Narebski
Previous: Junio C Hamano
Message 16 of 16 in “Better unquoting of git quoted filenames; esc_path to escape pathnames for display”
  1. 0/2 Better unquoting of git quoted filenames; esc_path to escape pathnames for displayJakub Narebski, Nov 8, 2006
  2. 1/2 gitweb: Better git-unquoting and gitweb-quoting of pathnamesJakub Narebski, Nov 8, 2006
  3. 2/2 gitweb: Use character or octal escape codes (and add span.cntrl) in esc_pathJakub Narebski, Nov 8, 2006
  4. 0/2 gitweb: New improved patchset viewJakub Narebski, Nov 8, 2006
  5. 1/2 gitweb: New improved patchset viewJakub Narebski, Nov 8, 2006
  6. Junio C HamanoNov 8, 2006
  7. Junio C HamanoNov 8, 2006
  8. Jakub NarebskiNov 8, 2006
  9. 1/2 gitweb: New improved patchset viewJakub Narebski, Nov 8, 2006
  10. 2/2 gitweb: New improved formatting of chunk header in diffJakub Narebski, Nov 8, 2006
  11. Junio C HamanoNov 8, 2006
  12. Jakub NarebskiNov 8, 2006
  13. Junio C HamanoNov 8, 2006
  14. Jakub NarebskiNov 8, 2006
  15. Junio C HamanoNov 8, 2006
  16. Jakub NarebskiNov 8, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.