version 1.54, 2021/10/07 21:38:25 |
version 1.55, 2021/10/07 21:43:20 |
Line 169 process_comment(void) |
|
Line 169 process_comment(void) |
|
if (*buf_ptr != ' ' && !ps.box_com) |
if (*buf_ptr != ' ' && !ps.box_com) |
*com.e++ = ' '; |
*com.e++ = ' '; |
|
|
/* |
/* Don't put a break delimiter if this is a one-liner that won't wrap. */ |
* Don't put a break delimiter if this is a one-liner that won't wrap. |
|
*/ |
|
if (break_delim) |
if (break_delim) |
for (t_ptr = buf_ptr; *t_ptr != '\0' && *t_ptr != '\n'; t_ptr++) { |
for (t_ptr = buf_ptr; *t_ptr != '\0' && *t_ptr != '\n'; t_ptr++) { |
if (t_ptr >= buf_end) |
if (t_ptr >= buf_end) |
Line 310 process_comment(void) |
|
Line 308 process_comment(void) |
|
/* XXX: signed character comparison '>' does not work for UTF-8 */ |
/* XXX: signed character comparison '>' does not work for UTF-8 */ |
if (now_len > adj_max_line_length && |
if (now_len > adj_max_line_length && |
!ps.box_com && com.e[-1] > ' ') { |
!ps.box_com && com.e[-1] > ' ') { |
/* |
/* the comment is too long, it must be broken up */ |
* the comment is too long, it must be broken up |
|
*/ |
|
if (last_blank == -1) { |
if (last_blank == -1) { |
dump_line(); |
dump_line(); |
if (!ps.box_com && opt.star_comment_cont) |
if (!ps.box_com && opt.star_comment_cont) |