mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression that broke help formatting
This commit is contained in:
parent
ab7274536d
commit
e40228cb84
@ -82,8 +82,8 @@ class CustomHelpFormatter(optparse.IndentedHelpFormatter):
|
|||||||
|
|
||||||
for line in help_text:
|
for line in help_text:
|
||||||
help_lines.extend(textwrap.wrap(line, self.help_width))
|
help_lines.extend(textwrap.wrap(line, self.help_width))
|
||||||
result.append(' '*indent_first + f'{help_lines[0]}')
|
result.append(' '*indent_first + f'{help_lines[0]}\n')
|
||||||
result.extend([' '*self.help_position + f'{line}' for line in help_lines[1:]])
|
result.extend(' '*self.help_position + f'{line}\n' for line in help_lines[1:])
|
||||||
elif opts[-1] != '\n':
|
elif opts[-1] != '\n':
|
||||||
result.append('\n')
|
result.append('\n')
|
||||||
return ''.join(result)+'\n'
|
return ''.join(result)+'\n'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user