AutoYADM commit: 2025-03-25 13:30:08
This commit is contained in:
parent
0bb5fd957a
commit
fa9177b417
1 changed files with 5 additions and 1 deletions
|
@ -36,6 +36,7 @@ for line in sys.stdin:
|
||||||
skipping = True
|
skipping = True
|
||||||
print(line, end = "")
|
print(line, end = "")
|
||||||
elif not line.rstrip():
|
elif not line.rstrip():
|
||||||
|
# Empty line
|
||||||
in_par = not in_par
|
in_par = not in_par
|
||||||
print()
|
print()
|
||||||
# print(line, end="")
|
# print(line, end="")
|
||||||
|
@ -45,17 +46,20 @@ for line in sys.stdin:
|
||||||
for next_line in sys.stdin:
|
for next_line in sys.stdin:
|
||||||
# if not line.startswith((">", "```", "--")):
|
# if not line.startswith((">", "```", "--")):
|
||||||
stripped = next_line.rstrip()
|
stripped = next_line.rstrip()
|
||||||
|
print("runs")
|
||||||
if stripped:
|
if stripped:
|
||||||
|
print("runs")
|
||||||
par.append(stripped)
|
par.append(stripped)
|
||||||
else:
|
else:
|
||||||
in_par = False
|
in_par = False
|
||||||
|
par.append("\n")
|
||||||
break
|
break
|
||||||
line = " ".join(par)
|
line = " ".join(par)
|
||||||
|
print(par)
|
||||||
# empty line, treat next section as paragraph
|
# empty line, treat next section as paragraph
|
||||||
# TODO: fix signature being mangled and newlines erased
|
# TODO: fix signature being mangled and newlines erased
|
||||||
if not skipping:
|
if not skipping:
|
||||||
wrapped = textwrap.wrap(line, width=74, break_long_words=False, replace_whitespace=True)
|
wrapped = textwrap.wrap(line, width=74, break_long_words=False, replace_whitespace=True)
|
||||||
|
|
||||||
print("\n".join(wrapped))
|
print("\n".join(wrapped))
|
||||||
else:
|
else:
|
||||||
print(line, end = "")
|
print(line, end = "")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue