Skip to content

Wrap Elog plain text inside <p> tag #3414

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wanglin86769
Copy link
Contributor

It seems that the previous PR #3413 affects the behavior of Olog, and the approach is not appropriate. So this PR takes a different approach.

For Elog, there are three kind of encodings as follows,

plain
image

ELCode
image

HTML
image

For HTML encoding, the newline is controlled by the <p> tag and whitespace by &nbsp;, so there is no problem when displayed on Olog UI.

For plain encoding, this PR wraps the Elog text inside <p style="white-space: pre-wrap;"></p> tag in order to preserve whitespaces.

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.

1 participant