damianszczepanik / cucumber-reporting

HTML reports for Cucumber
GNU Lesser General Public License v2.1
541 stars 403 forks source link

change font-family to monospace for description #962

Open 0xERR0R opened 3 years ago

0xERR0R commented 3 years ago

It would be nice, if monospace font would be used for description. It would allow to use ASCII-art for small graphics and diagrams.

Currently, italic font is used,: image

With font-family: monospace, it would look like: image

0xERR0R commented 3 years ago

In cucumber html report, it displayed correct, when using <pre> tags in the description: image

damianszczepanik commented 3 years ago

Interesting approach but not sure how popular and accepted it would be.

0xERR0R commented 3 years ago

Maybe it would be an option to change the formatting only if \

 tag is used? In this case, the default behaviour would not be changed and the user can decide, how it should be formatted. It would also behave the same as cucumber html report.