lol

nixos-render-docs: indent and embolden list item heads in manpages

this matches what html outputs do more closely, and feels like it'll be
easier to read because it looks less like just another paragraph.

authored by

pennae and committed by
pennae
3c7fd940 f47adfcb

+2 -2
+2 -2
pkgs/tools/nix/nixos-render-docs/src/nixos_render_docs/manpage.py
··· 172 172 lst.first_item_seen = True 173 173 head = "•" 174 174 if lst.next_idx is not None: 175 - head = f" {lst.next_idx}." 175 + head = f"{lst.next_idx}." 176 176 lst.next_idx += 1 177 177 return ( 178 178 f'{maybe_space}' 179 179 f'.RS {lst.width}\n' 180 - f"\\h'-{lst.width}'{man_escape(head)}\\h'{lst.width - len(head)}'\\c" 180 + f"\\h'-{len(head) + 1}'\\fB{man_escape(head)}\\fP\\h'1'\\c" 181 181 ) 182 182 def list_item_close(self, token: Token, tokens: Sequence[Token], i: int, options: OptionsDict, 183 183 env: MutableMapping[str, Any]) -> str: