Skip to content

Commit fe88a44

Browse files
author
Lukas Neubert
authored
fmt: fix module docs generation (#9810)
1 parent 4a1f75c commit fe88a44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vlib/v/fmt/fmt.v

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,6 +1951,9 @@ fn split_up_infix(infix_str string, ignore_paren bool) ([]string, []int) {
19511951
fn (mut f Fmt) write_splitted_infix(conditions []string, penalties []int, ignore_paren bool) {
19521952
for i, cnd in conditions {
19531953
c := cnd.trim_space()
1954+
if c.len == 0 {
1955+
continue
1956+
}
19541957
if f.line_len + c.len < fmt.max_len[penalties[i]] {
19551958
if (i > 0 && i < conditions.len) || (ignore_paren && i == 0 && c.len > 5 && c[3] == `(`) {
19561959
f.write(' ')

0 commit comments

Comments
 (0)