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

Re: [PATCH] urls.txt: Use substitution to escape square brackets

From
Junio C Hamano <junkio@cox.net>
Date
Jul 14, 2006, 23:13 UTC
Message-ID
<7v8xmvok49.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<44B82243.20604@atoker.com>
Alp Toker <alp@atoker.com> writes:
Show 12 quoted lines
> Junio C Hamano wrote:
>>
>> Looks nicer.  Alp?  Does this work with your version of
>> asciidoc?
>
> I'm using asciidoc 7.0.2, which came with Ubuntu Dapper.
>
> The man page output now looks like this:
>
>        ·  ssh://[ # [user@] # ]host.xz/path/to/repo.git/
>        ·  ssh://[ # [user@] # ]host.xz/~user/path/to/repo.git/
>        ·  ssh://[ # [user@] # ]host.xz/~/path/to/repo.git

I got a bit inventive and removed the comments after #, which were in Jonas's version, when I tried it out. Maybe doing the same might help you, since I suspect the above '#' are coming from the comment part.

Show 8 quoted lines
> Out of the three patches,
>
>   (at) "ssh://[user@]host.xz/path/to/repo.git/"
>   (jc) "ssh://+++[user@+++]host.xz/path/to/repo.git/"
>   (jf) "ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/"
>
> I'd say (at) is still most readable, not requiring +++ markup (jc) or
> hacks to asciidoc.conf (jf).

I do not think defining [attribute] is a hack; it is a documented feature.

Previous: Alp TokerNext: Alp Toker
Message 8 of 12 in “Revert "Documentation: Fix ssh://[user@]host.xz URL"”
  1. Revert "Documentation: Fix ssh://[user@]host.xz URL"Alp Toker, Jul 14, 2006
  2. Documentation: Fix ssh:// URLs in generated documentationAlp Toker, Jul 14, 2006
  3. Documentation: Minor capitalization typofixAlp Toker, Jul 14, 2006
  4. Junio C HamanoJul 14, 2006
  5. urls.txt: Use substitution to escape square bracketsJonas Fonseca, Jul 14, 2006
  6. Junio C HamanoJul 14, 2006
  7. Alp TokerJul 14, 2006
  8. Junio C HamanoJul 14, 2006
  9. Alp TokerJul 14, 2006
  10. urls.txt: Use substitution to escape square bracketsJunio C Hamano, Jul 14, 2006
  11. Alp TokerJul 15, 2006
  12. Make asciidoc related rules depend on asciidoc.confJonas Fonseca, Jul 15, 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.