Skip to content

Commit 05d595f

Browse files
committed
tmp
1 parent 7658fd1 commit 05d595f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/JbeamEdit/Formatting.hs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,10 @@ applyIndentation n s
128128
| otherwise = T.replicate n " " <> s
129129

130130
skipHeaderRow :: Vector (Vector Node) -> Vector (Vector Node)
131-
skipHeaderRow nodes =
132-
case V.uncons nodes of
133-
Just (headerRow, rest) ->
134-
bool nodes rest (all isStringNode headerRow)
135-
Nothing -> nodes
131+
skipHeaderRow nodes
132+
| V.length nodes > 1 =
133+
bool nodes (V.unsafeTail nodes) (V.all isStringNode $ V.unsafeHead nodes)
134+
| otherwise = nodes
136135

137136
maxColumnLengths
138137
:: RuleSet -> NC.NodeCursor -> Vector (Vector Node) -> Vector Int

0 commit comments

Comments
 (0)