fix(coding-agent): prevent wrapped padding in HTML export
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed HTML export preserving ANSI-renderer trailing padding as extra blank wrapped lines.
|
||||||
|
|
||||||
## [0.70.4] - 2026-04-27
|
## [0.70.4] - 2026-04-27
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -555,7 +555,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ansi-line {
|
.ansi-line {
|
||||||
white-space: pre-wrap;
|
white-space: pre;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tool-images {
|
.tool-images {
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ describe("export HTML tool output whitespace", () => {
|
|||||||
expect(css).toMatch(
|
expect(css).toMatch(
|
||||||
/\.output-preview > div:not\(\.expand-hint\),\s*\.output-full > div:not\(\.expand-hint\) \{[\s\S]*?white-space:\s*pre-wrap;/,
|
/\.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;/);
|
expect(css).not.toMatch(/\.output-preview,\s*\.output-full\s*\{[\s\S]*?white-space:\s*pre-wrap;/);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user