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

fix: 开头空格不显示 #9

Merged
merged 2 commits into from
Nov 22, 2019
Merged

fix: 开头空格不显示 #9

merged 2 commits into from
Nov 22, 2019

Conversation

snowlocked
Copy link
Collaborator

Why

日志开头空格没有显示导致日志内容可读性差了

image

How

增加样式显示开头空格
white-space: pre;

Test

修改后效果
image

@auto-add-label auto-add-label bot added the bug Something isn't working label Nov 22, 2019
@netlify
Copy link

netlify bot commented Nov 22, 2019

Deploy preview for log-viewer ready!

Built with commit d0981e4

https://deploy-preview-9--log-viewer.netlify.com

@lianghx-319
Copy link
Member

image

保留这些空格换行会导致一些别的问题。

@snowlocked
Copy link
Collaborator Author

image

保留这些空格换行会导致一些别的问题。

已经处理,原因是使用pre属性后,template模板换行也生效了,将内容放在在同一行显示就好
image

@levy9527 levy9527 merged commit 9f19faa into FEMessage:dev Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants