| 485 |
content[ARTICLE_CONTENT_MAX_LEN - 1] = '\0'; |
content[ARTICLE_CONTENT_MAX_LEN - 1] = '\0'; |
| 486 |
|
|
| 487 |
// Remove control sequence |
// Remove control sequence |
| 488 |
len_content = ctrl_seq_filter(content); |
len_content = str_filter(content, 0); |
| 489 |
|
|
| 490 |
p_editor_data = editor_data_load(content); |
p_editor_data = editor_data_load(content); |
| 491 |
if (p_editor_data == NULL) |
if (p_editor_data == NULL) |
| 741 |
|
|
| 742 |
p_article_new->title[0] = '\0'; |
p_article_new->title[0] = '\0'; |
| 743 |
snprintf(title_input, sizeof(title_input), "Re: %s", p_article->title); |
snprintf(title_input, sizeof(title_input), "Re: %s", p_article->title); |
| 744 |
len = split_line(title_input, TITLE_INPUT_MAX_LEN, &eol, &display_len); |
len = split_line(title_input, TITLE_INPUT_MAX_LEN, &eol, &display_len, 0); |
| 745 |
title_input[len] = '\0'; |
title_input[len] = '\0'; |
| 746 |
|
|
| 747 |
db = db_open(); |
db = db_open(); |
| 834 |
content_f[len] = '\0'; |
content_f[len] = '\0'; |
| 835 |
|
|
| 836 |
// Remove control sequence |
// Remove control sequence |
| 837 |
len = ctrl_seq_filter(content_f); |
len = str_filter(content_f, 0); |
| 838 |
|
|
| 839 |
len = snprintf(content, ARTICLE_CONTENT_MAX_LEN, |
len = snprintf(content, ARTICLE_CONTENT_MAX_LEN, |
| 840 |
"\n\n【 在 %s (%s) 的大作中提到: 】\n", |
"\n\n【 在 %s (%s) 的大作中提到: 】\n", |
| 841 |
p_article->username, p_article->nickname); |
p_article->username, p_article->nickname); |
| 842 |
|
|
| 843 |
quote_content_lines = split_data_lines(content_f, ARTICLE_QUOTE_LINE_MAX_LEN, line_offsets, ARTICLE_QUOTE_MAX_LINES + 1); |
quote_content_lines = split_data_lines(content_f, ARTICLE_QUOTE_LINE_MAX_LEN, line_offsets, ARTICLE_QUOTE_MAX_LINES + 1, 0); |
| 844 |
for (i = 0; i < quote_content_lines; i++) |
for (i = 0; i < quote_content_lines; i++) |
| 845 |
{ |
{ |
| 846 |
memcpy(content + len, ": ", 2); // quote line prefix |
memcpy(content + len, ": ", 2); // quote line prefix |