From 3ab47b80e26bfd9f8af27a5947a2bba072f3742c Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 6 Jun 2026 02:59:07 +0900 Subject: feat(console): pass styles through HtmlOutputFormatter constructor Resolve TODO(phase-b): mirror PHP's parent::__construct(true, $styles) by extending the base OutputFormatter::new to accept a style map. Co-Authored-By: Claude Opus 4.8 --- crates/shirabe/src/console/html_output_formatter.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crates/shirabe/src/console') diff --git a/crates/shirabe/src/console/html_output_formatter.rs b/crates/shirabe/src/console/html_output_formatter.rs index 39294c8..a2158fa 100644 --- a/crates/shirabe/src/console/html_output_formatter.rs +++ b/crates/shirabe/src/console/html_output_formatter.rs @@ -42,10 +42,8 @@ impl HtmlOutputFormatter { ]; pub fn new(styles: IndexMap) -> Self { - // TODO(phase-b): styles dropped until base OutputFormatter::new accepts a style map - let _ = styles; Self { - inner: OutputFormatter::new(true), + inner: OutputFormatter::new(true, styles), } } -- cgit v1.3.1