Skip to content

Commit

Permalink
Allow bare promts
Browse files Browse the repository at this point in the history
It is impossible to see that a space is missing when there is nothing after it. Don't require a space then.

* Add a space after the promt when missing.
  • Loading branch information
joakimbits committed Jul 24, 2023
1 parent 77d64e8 commit 2a2c1ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions makemake.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ def build_commands(doc, heading, embed="%s", end="", pip=""):
if comment is None:
comment = ""

if command in ('$', '>') and comment[:1] == ' ':
command += comment[:1]
if command in ('$', '>') and (not comment or comment.startswith(' ')):
command += ' '
comment = comment[1:]

if command[:2] == '$ ':
Expand Down

0 comments on commit 2a2c1ba

Please sign in to comment.