fix(coding-agent): prevent wrapped padding in HTML export

This commit is contained in:
Mario Zechner
2026-04-27 21:49:46 +02:00
parent 2dd6399b71
commit 01e2536879
3 changed files with 6 additions and 1 deletions

View File

@@ -2,6 +2,10 @@
## [Unreleased]
### Fixed
- Fixed HTML export preserving ANSI-renderer trailing padding as extra blank wrapped lines.
## [0.70.4] - 2026-04-27
### Fixed

View File

@@ -555,7 +555,7 @@
}
.ansi-line {
white-space: pre-wrap;
white-space: pre;
}
.tool-images {

View File

@@ -13,6 +13,7 @@ describe("export HTML tool output whitespace", () => {
expect(css).toMatch(
/\.output-preview > div:not\(\.expand-hint\),\s*\.output-full > div:not\(\.expand-hint\) \{[\s\S]*?white-space:\s*pre-wrap;/,
);
expect(css).toMatch(/\.ansi-line\s*\{[\s\S]*?white-space:\s*pre;/);
expect(css).not.toMatch(/\.output-preview,\s*\.output-full\s*\{[\s\S]*?white-space:\s*pre-wrap;/);
});