mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-09 23:54:20 +02:00
Improve rendering of :option: in cli docs
This commit is contained in:
@@ -96,7 +96,9 @@ def opt(text: str) -> str:
|
||||
|
||||
|
||||
def option(x: str) -> str:
|
||||
idx = x.find('-')
|
||||
idx = x.rfind('--')
|
||||
if idx < 0:
|
||||
idx = x.find('-')
|
||||
if idx > -1:
|
||||
x = x[idx:]
|
||||
parts = map(bold, x.split())
|
||||
|
||||
Reference in New Issue
Block a user