diff --git a/src/terminal.ts b/src/terminal.ts index 154d6f8..87e3394 100644 --- a/src/terminal.ts +++ b/src/terminal.ts @@ -46,7 +46,16 @@ export function serializeAsHTML(session: TerminalSession): string { /** * Trim empty trailing rows and trailing whitespace from xterm HTML output. * - * Structure:
+ * WARNING: This function depends on xterm's specific HTML structure from serializeAsHTML(). + * If xterm changes their HTML format, this will need updating. Consider filing an issue + * with xterm to add a native trimEmpty option. + * + * Current structure expected: + * - Outer:......
+ * - Rows:+ * - Empty cells: or plain spaces + * + * Full structure:content* Each row is:......content*/ function trimHtmlOutput(html: string): string {