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

[Feature] 命令执行结果日志中显示时自动换行显示,不显示为\n #312

Open
JiyongShi opened this issue Nov 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@JiyongShi
Copy link

功能描述
部署步骤中执行命令返回结果如果为多行时,现在web上查看日志时显示为:“SSH 执行命令成功:xxx \n line2\n line3\n lines4”,这种形式阅读不友好,建议在web端显示时对info[]对象中逐条字符串做处理,\n做换行显示

动机
日志阅读更友好

替代方案
https://github.com/usual2970/certimate/blob/44332b9d07b86bf74fa94ccce79423fdbf05274f/ui/src/pages/history/History.tsx#L130C38-L130C39
style whiteSpace: 'pre-line'

@JiyongShi JiyongShi added the enhancement New feature or request label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant