fix(coding-agent): preserve share page tool output indentation closes #3440

This commit is contained in:
Mario Zechner
2026-04-20 14:46:18 +02:00
parent d4e2e563ae
commit 5ea8a276eb
3 changed files with 14 additions and 0 deletions

View 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;/,
);
});
});