aboutsummaryrefslogtreecommitdiff
path: root/src/paragraph.zig
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-29 22:30:04 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-29 22:30:04 +0200
commit78f399521661c82e45e627bbbdc8ce4daa9e5207 (patch)
tree2671aa93feb01956aded5cef1e725f9aff4aa3a9 /src/paragraph.zig
parent77ccdd8559383c25fc59fbcba38117102e5657b5 (diff)
style(typst): move in lib folder
Diffstat (limited to 'src/paragraph.zig')
-rw-r--r--src/paragraph.zig5
1 files changed, 3 insertions, 2 deletions
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;
}
}