fix up formatting of desktop_template.zig

pull/7679/head
Jeffrey C. Ollie 2025-06-25 15:11:58 -05:00 committed by Mitchell Hashimoto
parent 8a95212197
commit 73d5eb928c
1 changed files with 3 additions and 1 deletions

View File

@ -6,10 +6,11 @@ pub fn main() !void {
defer _ = debug.deinit(); defer _ = debug.deinit();
const alloc = debug.allocator(); const alloc = debug.allocator();
const stdin = std.io.getStdIn();
const stdin = std.io.getStdIn();
const stdout = std.io.getStdOut(); const stdout = std.io.getStdOut();
var input = stdin.reader(); var input = stdin.reader();
while (try input.readUntilDelimiterOrEofAlloc(alloc, '\n', 4096)) |line| { while (try input.readUntilDelimiterOrEofAlloc(alloc, '\n', 4096)) |line| {
defer alloc.free(line); defer alloc.free(line);
@ -23,6 +24,7 @@ pub fn main() !void {
defer alloc.free(buf3); defer alloc.free(buf3);
if (cfg.flatpak and std.mem.startsWith(u8, buf3, "SystemdService=")) continue; if (cfg.flatpak and std.mem.startsWith(u8, buf3, "SystemdService=")) continue;
try stdout.writeAll(buf3); try stdout.writeAll(buf3);
try stdout.writeAll("\n"); try stdout.writeAll("\n");
} }