Extra spaces and tabs in docstring display fro cucumber adapter for extent version 4.1.x
See original GitHub issueThis is in continuation of this issue https://github.com/extent-framework/extentreports-cucumber4-adapter/issues/60#issuecomment-660677316
Getting 2 spaces for the first line in docstring display using the MarkupHelper.createCodeBlock
for extent version 4.1.7. Get an extra tab for versions 4.1.6 and below. In BOTH cases there is an extra new line at the bottom.
This works perfectly in extent version 5-snapshot.
Link to the relevant code (docstring branch) with print statements included - https://github.com/grasshopper7/extentreports-cucumber5-adapter/blob/b3a0a6226d831a24bf20f82fad8ab1ac5e6b170f/extentreports-cucumber5-adapter/src/main/java/com/aventstack/extentreports/cucumber/adapter/ExtentCucumberAdapter.java#L463
Version 4.1.7
Console output - Extra 2 spaces for the first line in markup output
--Original Doc String------
Hello there how r u?
Doing great.
Whats new?
--Markup Doc String------
<textarea readonly class='code-block'>
Hello there how r u?
Doing great.
Whats new?
</textarea>
Browser output -
Version 4.1.6 and below
Console output - Additional tab for the first line in markup output
--Original Doc String------
Hello there how r u?
Doing great.
Whats new?
--Markup Doc String------
<textarea readonly class='code-block'>
Hello there how r u?
Doing great.
Whats new?
</textarea>
Browser output -
For reference adding
Version 5
Console output -
Hello there how r u?
Doing great.
Whats new?
--Markup Doc String------
<textarea readonly class='code-block'>Hello there how r u?
Doing great.
Whats new?</textarea>
Browser output -
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Will try to update both in a couple of days.
Can u check the wiki. The version number of the klov reporter seems to be missing, instead a maven property placeholder is used. https://github.com/extent-framework/extentreports-java/wiki/KlovReporter
Release v5 is ready. Please update 😃