Skip to content

luci-app-dockerman: fix logs missing spacebars - #8977

Open
jjm2473 wants to merge 1 commit into
openwrt:masterfrom
jjm2473:pr-master/fix-dockermanjs-logs-spacebars
Open

luci-app-dockerman: fix logs missing spacebars#8977
jjm2473 wants to merge 1 commit into
openwrt:masterfrom
jjm2473:pr-master/fix-dockermanjs-logs-spacebars

Conversation

@jjm2473

@jjm2473 jjm2473 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

add "white-space: pre-wrap;" as AI suggests

Pull request details

Description

Fix logs missing spacebar on render.

Screenshot or video of changes (if applicable)

Before:
image

After:
image

Maintainer (preferred)

@systemcrash


Tested on

OpenWrt version: OpenWrt 25.12.5
LuCI version: LuCI openwrt-25.12 branch
Web browser(s): Chrome 151.0.7922.76


Checklist

  • (Nice to have) Includes what Issue it closes (e.g. openwrt/luci#issue-number).
  • (Nice to have) Includes what it depends on (e.g. openwrt/packages#pr-number in sister repo).

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit; one inline issue on the approach taken (see comment). Commit message matches its diff, and CI on 70abada is green.


Generated by Claude Code

Comment thread applications/luci-app-dockerman/htdocs/luci-static/resources/dockerman/common.js Outdated
add "white-space: pre-wrap;" as AI suggests

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
@jjm2473
jjm2473 force-pushed the pr-master/fix-dockermanjs-logs-spacebars branch from 70abada to 329f284 Compare August 25, 2026 03:49

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit. The &nbsp; escaping approach flagged last round has been replaced with white-space: pre-wrap; on the logs container, which addresses the wrapping regression and the tab-collapsing gap as well — ansiToHtml() already rewrites \r\n/\r/\n to <br/> before the string reaches the DOM, so pre-wrap won't double up line breaks. Commit message matches its diff. One nit inline; CI on 329f284 is green (x86_64 build still running).


Generated by Claude Code

@jjm2473

jjm2473 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

ping @systemcrash

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.

2 participants