Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newlines are not possible to be encoded #66

Open
def- opened this issue Nov 14, 2024 · 2 comments
Open

Newlines are not possible to be encoded #66

def- opened this issue Nov 14, 2024 · 2 comments

Comments

@def-
Copy link

def- commented Nov 14, 2024

Newlines in the message of a junit_report::TestCase::failure() are stored in the XML as straight newlines. When parsing the XML (for example with python-junit-xml) they are automatically stripped. Instead the newline should be encoded as 
.

As a workaround I tried &error.to_string().replace("\n", "
"), but the 
 is then encoded as 


@bachp
Copy link
Owner

bachp commented Nov 18, 2024

@def- Could you provide a test case that failes?

def- added a commit to def-/junit-report-rs that referenced this issue Nov 18, 2024
@def-
Copy link
Author

def- commented Nov 18, 2024

Sure: #68

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

No branches or pull requests

2 participants