소스 검색

[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…
취소
저장