mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
nixos-render-docs: make manpage deflists a little nicer
indent the entire list by 4, just like each definition is already indented by 4. this matches rendering in html, which indents terms once and indents definitions twice.
This commit is contained in:
parent
1e4bafdbc5
commit
f47adfcb6f
1 changed files with 2 additions and 2 deletions
|
@ -263,10 +263,10 @@ class ManpageRenderer(Renderer):
|
||||||
return self._admonition_close()
|
return self._admonition_close()
|
||||||
def dl_open(self, token: Token, tokens: Sequence[Token], i: int, options: OptionsDict,
|
def dl_open(self, token: Token, tokens: Sequence[Token], i: int, options: OptionsDict,
|
||||||
env: MutableMapping[str, Any]) -> str:
|
env: MutableMapping[str, Any]) -> str:
|
||||||
return ""
|
return ".RS 4"
|
||||||
def dl_close(self, token: Token, tokens: Sequence[Token], i: int, options: OptionsDict,
|
def dl_close(self, token: Token, tokens: Sequence[Token], i: int, options: OptionsDict,
|
||||||
env: MutableMapping[str, Any]) -> str:
|
env: MutableMapping[str, Any]) -> str:
|
||||||
return ""
|
return ".RE"
|
||||||
def dt_open(self, token: Token, tokens: Sequence[Token], i: int, options: OptionsDict,
|
def dt_open(self, token: Token, tokens: Sequence[Token], i: int, options: OptionsDict,
|
||||||
env: MutableMapping[str, Any]) -> str:
|
env: MutableMapping[str, Any]) -> str:
|
||||||
return ".PP"
|
return ".PP"
|
||||||
|
|
Loading…
Reference in a new issue