From 78f399521661c82e45e627bbbdc8ce4daa9e5207 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 29 Apr 2026 22:30:04 +0200 Subject: style(typst): move in lib folder --- src/paragraph.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/paragraph.zig') diff --git a/src/paragraph.zig b/src/paragraph.zig index ce2d123..5b13cf2 100644 --- a/src/paragraph.zig +++ b/src/paragraph.zig @@ -41,6 +41,7 @@ pub fn parseLine(alloc: Allocator, l: *Lexer) Error!Element { } fn doTestMath(parent: Allocator, t: []const u8, v: []const u8) !void { + if (@import("config").short) return; var arena = std.heap.ArenaAllocator.init(parent); defer arena.deinit(); var alloc = arena.allocator(); @@ -54,10 +55,10 @@ fn doTestMath(parent: Allocator, t: []const u8, v: []const u8) !void { var v_iter = std.mem.splitSequence(u8, v, " "); while (g_iter.next()) |g_it| { const v_it = v_iter.next() orelse break :brk false; - if ((std.mem.startsWith(u8, g_it, "xlink:href=") and std.mem.startsWith(u8, g_it, "xlink:href")) or + if ((std.mem.startsWith(u8, g_it, "xlink:href=") and std.mem.startsWith(u8, g_it, "xlink:href")) or (std.mem.startsWith(u8, g_it, "id=") and std.mem.startsWith(u8, v_it, "id="))) continue; if (!std.mem.eql(u8, g_it, v_it)) { - std.debug.print("not the same: {s} vs {s}", .{g_it, v_it}); + std.debug.print("not the same: {s} vs {s}", .{ g_it, v_it }); break :brk false; } } -- cgit v1.2.3