mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: fix module docs generation (#9810)
This commit is contained in:
parent
4a1f75c964
commit
fe88a4460b
@ -1951,6 +1951,9 @@ fn split_up_infix(infix_str string, ignore_paren bool) ([]string, []int) {
|
|||||||
fn (mut f Fmt) write_splitted_infix(conditions []string, penalties []int, ignore_paren bool) {
|
fn (mut f Fmt) write_splitted_infix(conditions []string, penalties []int, ignore_paren bool) {
|
||||||
for i, cnd in conditions {
|
for i, cnd in conditions {
|
||||||
c := cnd.trim_space()
|
c := cnd.trim_space()
|
||||||
|
if c.len == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if f.line_len + c.len < fmt.max_len[penalties[i]] {
|
if f.line_len + c.len < fmt.max_len[penalties[i]] {
|
||||||
if (i > 0 && i < conditions.len) || (ignore_paren && i == 0 && c.len > 5 && c[3] == `(`) {
|
if (i > 0 && i < conditions.len) || (ignore_paren && i == 0 && c.len > 5 && c[3] == `(`) {
|
||||||
f.write(' ')
|
f.write(' ')
|
||||||
|
Loading…
Reference in New Issue
Block a user