HelpFormatter.write_text() uses the function wrap_text(text, width, initial_indent, ...) internally. This function expects width to be the line width including the eventual indentation. HelpFormatter.write_text() gets this wrong and passes self.width - self.current_indent instead of just self.width.
HelpFormatter.write_text()uses the functionwrap_text(text, width, initial_indent, ...)internally. This function expectswidthto be the line width including the eventual indentation.HelpFormatter.write_text()gets this wrong and passesself.width - self.current_indentinstead of justself.width.