Skip to content

Commit 8d1e5fe

Browse files
committed
Add test for headings
1 parent 87aa7e0 commit 8d1e5fe

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

jacow.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
if body.has("text") {
130130
let txt = body.text //lower(body.text)
131131
let words = ()
132-
if (not is-segment){ words += txt.matches(regex("^()(\\w+)")) } // first word
132+
if (not is-segment) { words += txt.matches(regex("^()(\\w+)")) } // first word
133133
words += txt.matches(regex("([.:;?!]\s+)(\\w+)")) // words after punctuation
134134
words += txt.matches(regex("()(\\w{4,})")) // words with 4+ letters
135135
for m in words {

tests/headings/ref/1.png

57 KB
Loading

0 commit comments

Comments
 (0)