Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Line breaks in TC's description. #156

Open
KiT-Maverik opened this issue Apr 15, 2019 · 5 comments
Open

Line breaks in TC's description. #156

KiT-Maverik opened this issue Apr 15, 2019 · 5 comments

Comments

@KiT-Maverik
Copy link

Hello everybody!
I want to add some line breaks in TC description, but \n doesn't work. Can you advise how is it possible to break the line?
reporter.addDescription("This is the first line.\nThis is the second line.");

The result is:
This is the first line.This is the second line.

@baev
Copy link

baev commented Apr 15, 2019

@KiT-Maverik try to use \n\n

@KiT-Maverik
Copy link
Author

KiT-Maverik commented Apr 15, 2019

@KiT-Maverik try to use \n\n

Now it loks like
This is the first line.
-------This is the second line.

@baev
Copy link

baev commented Apr 15, 2019

@KiT-Maverik can you show generated result file from allure-results folder?

@KiT-Maverik
Copy link
Author

KiT-Maverik commented Apr 16, 2019

@baev
Unable to attach due to site limitations.
Pasting content below
sample.txt
As you can see \n is not present in desc field.
Here the code I used:
reporter.addDescription("This test case is skipped. \nReason: need to find a way to deal with captcha");

@wannadream
Copy link

Have you tried \r\n?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants