fix(coding-agent): preserve share page tool output indentation closes #3440
This commit is contained in:
12
packages/coding-agent/test/export-html-whitespace.test.ts
Normal file
12
packages/coding-agent/test/export-html-whitespace.test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { readFileSync } from "fs";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
describe("export HTML tool output whitespace", () => {
|
||||
it("preserves whitespace for plain-text tool output containers", () => {
|
||||
const css = readFileSync(new URL("../src/core/export-html/template.css", import.meta.url), "utf-8");
|
||||
|
||||
expect(css).toMatch(
|
||||
/\.tool-output > div,\s*\.output-preview,\s*\.output-full\s*\{[\s\S]*?white-space:\s*pre-wrap;/,
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user