HtmlTestRunner icon indicating copy to clipboard operation
HtmlTestRunner copied to clipboard

Adding line breaks or newline support

Open DoctorMG opened this issue 4 years ago • 1 comments

  • HtmlTestRunner version: 1.2.1 acc. Anaconda Environment List
  • Python version: 3.7.1
  • Operating System: Windows

Description

When I add some "print(InfoForDocumentation)" commands linebreak, newline, '\n' etc. are ignored. This leads to a hard to read documentation.

What I Did

As designed the print-based output can be seen when the "view" button is used. But: everything is on one line. So e.g. the call, the parameters, or other things that should/could be saved are a little lo-fi for the human reader. I know that this text formatting can be enhanced to the infinite. But at least keeping newlines that become passed with a print-statement could be a quick fix.

DoctorMG avatar Mar 18 '21 09:03 DoctorMG

'<br/>' works for me if I want to get the text on a new line in the report.

dragojs avatar May 13 '21 07:05 dragojs