From 0bfa8f6914c9948d45d99141ac19d490eb5b278e Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 22 Oct 2024 13:17:02 -0400 Subject: [PATCH] format::desktop_entry: Line formatting now compiles --- format/desktop_entry/line.ha | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/format/desktop_entry/line.ha b/format/desktop_entry/line.ha index c9fdaaf..30d05dc 100644 --- a/format/desktop_entry/line.ha +++ b/format/desktop_entry/line.ha @@ -1,4 +1,5 @@ use fmt; +use io; use locale; use strings; @@ -46,9 +47,9 @@ export fn entry_finish(entr: entry) void = { // Formats a [[line]] and writes it to an [[io::handle]]. export fn fprint(output: io::handle, lin: line) (size | io::error) = match (lin) { -case blank => yield fmt::fprintln(output, lin); -case let lin: comment => yield fmt::fprintf(output, "#{}\n", lin: string); -case let lin: group_header => yield fmt::fprintf(output, "[{}]\n", lin: string); +case blank => yield fmt::fprintln(output); +case let lin: comment => yield fmt::fprintf(output, "#{}\n", lin: str); +case let lin: group_header => yield fmt::fprintf(output, "[{}]\n", lin: str); case let lin: entry => let wrote = fmt::print(lin.key)?; if (!locale::equal(locale::c, lin.locale)) {