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

Re: [PATCH v4 4/4] config.txt: describe handling of whitespace further

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Mar 21, 2024, 05:21 UTC
Message-ID
<CAPig+cTgbjCg5jkidEufgHgpkPOZPhfSbd_gbBxOFK=B8mX+fw@mail.gmail.com>
In-Reply-To
<9a5217f7f7a35768a3eb45060fb3e4f4@manjaro.org>
On Thu, Mar 21, 2024 at 1:16 AM Dragan Simic <dsimic@manjaro.org> wrote:
Show 14 quoted lines
> On 2024-03-21 06:11, Eric Sunshine wrote:
> > It should be possible to rephrase it to be more definite, while
> > dropping the final sentence altogether. Perhaps:
> >
> >     Whitespace surrounding `name`, `=` and `value` is ignored. If
> >     `value` is surrounding by double quotation marks (`"`), all
> >     characters within the quoted string are retained verbatim,
> >     including whitespace. Comments starting with either `#` or `;` and
> >     extending to the end of line are discarded. A line that defines a
> >     value can be continued to the next line by ending it with a `\`;
> >     the backslash and the end-of-line are stripped.
>
> Looking good to me, thanks.  I'll include it into the v5, with
> a small grammar issue fixed.

For completeness, I should mention that I intentionally reordered the topics so that the most common/important ones are mentioned earlier rather than later; i.e. (1) surrounding whitespace ignored, (2) double-quoted value, (3) comments, (4) `\` line-splicing with.

Previous: Dragan SimicNext: Dragan Simic
Message 10 of 14 in “Fix a bug in configuration parsing, and improve tests and documentation”
  1. 0/4 Fix a bug in configuration parsing, and improve tests and documentationDragan Simic, Mar 21, 2024
  2. 1/4 config: minor addition of whitespaceDragan Simic, Mar 21, 2024
  3. 2/4 config: really keep value-internal whitespace verbatimDragan Simic, Mar 21, 2024
  4. 3/4 t1300: add more tests for whitespace and inline commentsDragan Simic, Mar 21, 2024
  5. Eric SunshineMar 21, 2024
  6. Dragan SimicMar 21, 2024
  7. 4/4 config.txt: describe handling of whitespace furtherDragan Simic, Mar 21, 2024
  8. Eric SunshineMar 21, 2024
  9. Dragan SimicMar 21, 2024
  10. Eric SunshineMar 21, 2024
  11. Dragan SimicMar 21, 2024
  12. Junio C HamanoMar 21, 2024
  13. Eric SunshineMar 21, 2024
  14. Dragan SimicMar 21, 2024

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.