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

Replace escaped <br> tags in log context output #285

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

GavG
Copy link

@GavG GavG commented Oct 10, 2023

Addresses: #284

The prepareContextForOutput method translates newlines to <br> tags for display, but the highlightSearchResult subsequently escapes them.

This PR adds a regex replace to put them back.

I can't see any existing tests that validate the view output, so I haven't added any to this end. If it's warranted I can contribute some but not in a timely fashion.

@arukompas arukompas merged commit dc41ee8 into opcodesio:main Oct 10, 2023
13 checks passed
@arukompas
Copy link
Contributor

Thanks for the contribution @GavG ! 🎉

@GavG
Copy link
Author

GavG commented Oct 10, 2023

Thanks for the contribution @GavG ! 🎉

You're most welcome, thank for a great package 👍

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

Successfully merging this pull request may close these issues.

3 participants