浏览代码

[Minor] Check the last split when wrapping

Reported by: @amishmm
tags/3.5
Vsevolod Stakhov 1年前
父节点
当前提交
aefb2153a8
没有帐户链接到提交者的电子邮件
共有 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;
}
}

正在加载...
取消
保存