commit fd3ab9ff69e5208d40fa0b7dcded10b809dcd32a
parent d4b69d333666dba1945f9acec07806dd7756f1e0
Author: Philipp Wolfer <ph.wolfer@gmail.com>
Date: Fri, 1 Mar 2024 00:39:16 +0100
haredoc: fix call to log warnings
Signed-off-by: Philipp Wolfer <phw@uploadedlobster.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/haredoc/doc/html.ha b/cmd/haredoc/doc/html.ha
@@ -322,7 +322,7 @@ fn markup_html(
yield doc;
case let err: lex::syntax =>
const err = lex::strerror(err);
- fmt::errorfln("Warning:", err)?;
+ fmt::errorln("Warning:", err)?;
fmt::fprint(ctx.out, "<p class='ref invalid'>Can't parse docs: ")?;
html_escape(ctx.out, err)?;
fmt::fprintln(ctx.out)?;