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

Re: [PATCH v2 2/3] bitmap-format.txt: fix some formatting issues

From
Taylor Blau <me@ttaylorr.com>
Date
Jun 7, 2022, 20:51 UTC
Message-ID
<Yp+6WU+k2OwHDB1b@nand.local>
In-Reply-To
<cb919513c14d426b51051ee5c16badec37538032.1654623814.git.gitgitgadget@gmail.com>
On Tue, Jun 07, 2022 at 05:43:33PM +0000, Abhradeep Chakraborty via GitGitGadget wrote:
Show 8 quoted lines
> From: Abhradeep Chakraborty <chakrabortyabhradeep79@gmail.com>
>
> The asciidoc generated html for `Documentation/technical/bitmap-
> format.txt` is broken. This is mainly because `-` is used for nested
> lists (which is not allowed in asciidoc) instead of `*`.
>
> Fix these and also reformat it (e.g. removing some blank lines) for
> better readability of the html page.

Hmm. When I render the HTML for this page and view it in my browser, the removed blank lines makes the contents of the section "2-byte flags (network byte order)" run together, and I think it hurts readability IMHO.

Is there a way to keep those line breaks without significantly reformatting the source of this file?

Show 17 quoted lines
> Signed-off-by: Abhradeep Chakraborty <chakrabortyabhradeep79@gmail.com>
> ---
>  Documentation/technical/bitmap-format.txt | 20 +++++++-------------
>  1 file changed, 7 insertions(+), 13 deletions(-)
>
> diff --git a/Documentation/technical/bitmap-format.txt b/Documentation/technical/bitmap-format.txt
> index 04b3ec21785..f22669b5916 100644
> --- a/Documentation/technical/bitmap-format.txt
> +++ b/Documentation/technical/bitmap-format.txt
> @@ -39,7 +39,7 @@ MIDXs, both the bit-cache and rev-cache extensions are required.
>
>  == On-disk format
>
> -	- A header appears at the beginning:
> +	* A header appears at the beginning:
>
>  		4-byte signature: {'B', 'I', 'T', 'M'}

Similarly, everything below the "A header appears at the beginning" list item appears in a <pre> element, so the rendered HTML looks more like plaintext to me.

This isn't new from your patch, but I wonder if now is a good opportunity to make some light use of the formatting options that ASCIIDoc gives us to make the page read a little bit more easily when rendered as HTML.

I don't want to compromise too much on the readability of the .txt file, though, so if there isn't a good way to strike this balance, then I trust you and think we should leave it as you have modified things here.

Thanks, Taylor

Previous: Abhradeep Chakraborty via GitGitGadgetNext: Junio C Hamano
Message 11 of 37 in “bitmap-format.txt: fix some formatting issues and include checksum info”
  1. 0/2 bitmap-format.txt: fix some formatting issues and include checksum infoAbhradeep Chakraborty via GitGitGadget, Jun 2, 2022
  2. 2/2 bitmap-format.txt: add information for trailing checksumAbhradeep Chakraborty via GitGitGadget, Jun 2, 2022
  3. 1/2 bitmap-format.txt: fix some formatting issuesAbhradeep Chakraborty via GitGitGadget, Jun 2, 2022
  4. Junio C HamanoJun 6, 2022
  5. Abhradeep ChakrabortyJun 7, 2022
  6. 0/3 bitmap-format.txt: fix some formatting issues and include checksum infoAbhradeep Chakraborty via GitGitGadget, Jun 7, 2022
  7. 3/3 bitmap-format.txt: add information for trailing checksumAbhradeep Chakraborty via GitGitGadget, Jun 7, 2022
  8. Taylor BlauJun 7, 2022
  9. Abhradeep ChakrabortyJun 8, 2022
  10. 2/3 bitmap-format.txt: fix some formatting issuesAbhradeep Chakraborty via GitGitGadget, Jun 7, 2022
  11. Taylor BlauJun 7, 2022
  12. Junio C HamanoJun 7, 2022
  13. Abhradeep ChakrabortyJun 8, 2022
  14. Abhradeep ChakrabortyJun 8, 2022
  15. 1/3 bitmap-format.txt: feed the file to asciidoc to generate htmlAbhradeep Chakraborty via GitGitGadget, Jun 7, 2022
  16. Junio C HamanoJun 7, 2022
  17. Abhradeep ChakrabortyJun 8, 2022
  18. Taylor BlauJun 7, 2022
  19. Junio C HamanoJun 7, 2022
  20. Taylor BlauJun 7, 2022
  21. Junio C HamanoJun 7, 2022
  22. Abhradeep ChakrabortyJun 8, 2022
  23. 0/3 bitmap-format.txt: fix some formatting issues and include checksum infoAbhradeep Chakraborty via GitGitGadget, Jun 10, 2022
  24. 1/3 bitmap-format.txt: feed the file to asciidoc to generate htmlAbhradeep Chakraborty via GitGitGadget, Jun 10, 2022
  25. 2/3 bitmap-format.txt: fix some formatting issuesAbhradeep Chakraborty via GitGitGadget, Jun 10, 2022
  26. Taylor BlauJun 15, 2022
  27. Abhradeep ChakrabortyJun 15, 2022
  28. 3/3 bitmap-format.txt: add information for trailing checksumAbhradeep Chakraborty via GitGitGadget, Jun 10, 2022
  29. Junio C HamanoJun 10, 2022
  30. Taylor BlauJun 15, 2022
  31. Junio C HamanoJun 15, 2022
  32. 0/3 bitmap-format.txt: fix some formatting issues and include checksum infoAbhradeep Chakraborty via GitGitGadget, Jun 16, 2022
  33. 1/3 bitmap-format.txt: feed the file to asciidoc to generate htmlAbhradeep Chakraborty via GitGitGadget, Jun 16, 2022
  34. 2/3 bitmap-format.txt: fix some formatting issuesAbhradeep Chakraborty via GitGitGadget, Jun 16, 2022
  35. 3/3 bitmap-format.txt: add information for trailing checksumAbhradeep Chakraborty via GitGitGadget, Jun 16, 2022
  36. Junio C HamanoJun 16, 2022
  37. Taylor BlauJun 16, 2022

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.