Mercurial > public > mercurial-scm > hg-stable
comparison doc/gendoc.py @ 46570:85ec89c47a04
gendoc: use an empty comment so aliases are separated from previous elements
For commands like `hg bookmarks`, where there's no `[+] marked option can be
specified multiple times`, this causes the final option in the option list to
not be the parent of the aliases definition. The aliases section is thus marked
as a blockquote like on commands that do have text separating the option list
and the aliases definition.
Differential Revision: https://phab.mercurial-scm.org/D9990
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Fri, 12 Feb 2021 13:27:03 -0800 |
parents | eb36f7a71291 |
children | 1b6e381521c5 6000f5b25c9b |
comparison
equal
deleted
inserted
replaced
46569:eb36f7a71291 | 46570:85ec89c47a04 |
---|---|
315 ) | 315 ) |
316 ) | 316 ) |
317 ui.write(b"\n") | 317 ui.write(b"\n") |
318 # aliases | 318 # aliases |
319 if d[b'aliases']: | 319 if d[b'aliases']: |
320 ui.write(_(b" aliases: %s\n\n") % b" ".join(d[b'aliases'])) | 320 # Note the empty comment, this is required to separate this |
321 # (which should be a blockquote) from any preceding things (such | |
322 # as a definition list). | |
323 ui.write( | |
324 _(b"..\n\n aliases: %s\n\n") % b" ".join(d[b'aliases']) | |
325 ) | |
321 | 326 |
322 | 327 |
323 def allextensionnames(): | 328 def allextensionnames(): |
324 return set(extensions.enabled().keys()) | set(extensions.disabled().keys()) | 329 return set(extensions.enabled().keys()) | set(extensions.disabled().keys()) |
325 | 330 |