Skip to content

Commit 8239aef

Browse files
committed
Document functionality with a comment
1 parent 6307f01 commit 8239aef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tldr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,8 @@ def emphasise_example(x: str) -> str:
477477
# Handle escaped placeholders first
478478
line = line.replace(r'\{\{', '__ESCAPED_OPEN__')
479479
line = line.replace(r'\}\}', '__ESCAPED_CLOSE__')
480+
481+
# Extract long or short options from placeholders
480482
if not (shortform and longform):
481483
if shortform:
482484
line = re.sub(r'{{(-.)\|--.+?}}', r'{{\1}}', line)

0 commit comments

Comments
 (0)