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

Re: [PATCH v2] doc: format pathnames and URLs as monospace

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Mar 3, 2019, 16:50 UTC
Message-ID
<CAPig+cRTHV27pC-87rNhgVEFqadXBGVXdrUtNo9xOqK0Pyw2rw@mail.gmail.com>
In-Reply-To
<20190303164008.3928-1-corentin.bompard@etu.univ-lyon1.fr>

On Sun, Mar 3, 2019 at 11:41 AM Corentin BOMPARD <corentin.bompard@etu.univ-lyon1.fr> wrote:

Show 14 quoted lines
> Updating the documentation to use monospace on URLs and pathnames because it makes more sense
>
> Signed-off-by: Corentin BOMPARD <corentin.bompard@etu.univ-lyon1.fr>
> Signed-off-by: Nathan BERBEZIER <nathan.berbezier@etu.univ-lyon1.fr>
> Signed-off-by: Pablo CHABANNE <pablo.chabanne@etu.univ-lyon1.fr>
> ---
> diff --git a/Documentation/gitweb.txt b/Documentation/gitweb.txt
> @@ -48,10 +48,10 @@ repository root, i.e. be all under a single parent repository (but see also
>  projects' root" subsection).
>
>  -----------------------------------------------------------------------
> -our $projectroot = '/path/to/parent/directory';
> +our $projectroot = `/path/to/parent/directory`;
>  -----------------------------------------------------------------------

For the same reason explained in [1], don't do this. Due to the "----" lines surrounding this text, it is already formatted using a monospace font. More importantly, however, changing the quotes like this actually changes the meaning of the code snippet, and not in a good way (in fact in a potentially bad way since it tries to execute code inside the `...` rather than just assigning the content of '...' as a literal string to the variable $projectroot).

[1]: https://public-inbox.org/git/CAPig+cSkpUCm0=TZ-T2Lv5F0bxhGhyMMS6Nxj42JFbNupgpf0A@mail.gmail.com/
Previous: Corentin BOMPARD
Message 2 of 2 in “doc: format pathnames and URLs as monospace”
  1. doc: format pathnames and URLs as monospaceCorentin BOMPARD, Mar 3, 2019
  2. Eric SunshineMar 3, 2019

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.