瀏覽代碼

[Minor] Check the last split when wrapping

Reported by: @amishmm
tags/3.5
Vsevolod Stakhov 1 年之前
父節點
當前提交
aefb2153a8
No account linked to committer's email address
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/client/rspamc.cxx

+ 4
- 0
src/client/rspamc.cxx 查看文件

@@ -847,6 +847,10 @@ rspamc_print_indented_line(FILE *out, std::string_view line) -> void
suffix = suffix.substr(delim_pos + 1);
}
else {
/* Check if we can include one last word */
if (delim_pos == std::string_view::npos && word_len + suffix.size() < split_len) {
word_len += suffix.size();
}
break;
}
}

Loading…
取消
儲存