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

Closed
opened 2026-03-03 01:01:30 +03:00 by kerem · 0 comments
Owner

Originally created by @JiyongShi on GitHub (Nov 7, 2024).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/312

Originally assigned to: @fudiwei on GitHub.

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

动机
日志阅读更友好

替代方案
github.com/usual2970/certimate@44332b9d07/ui/src/pages/history/History.tsx (L130C38-L130C39)
style whiteSpace: 'pre-line'

Originally created by @JiyongShi on GitHub (Nov 7, 2024). Original GitHub issue: https://github.com/certimate-go/certimate/issues/312 Originally assigned to: @fudiwei on GitHub. **功能描述** 部署步骤中执行命令返回结果如果为多行时,现在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'
kerem 2026-03-03 01:01:30 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#191
No description provided.