| 331 |
len = lml_plain(row[1], content_f, ARTICLE_CONTENT_MAX_LEN); |
len = lml_plain(row[1], content_f, ARTICLE_CONTENT_MAX_LEN); |
| 332 |
content_f[len] = '\0'; |
content_f[len] = '\0'; |
| 333 |
|
|
| 334 |
|
// Remove control sequence |
| 335 |
|
len = ctrl_seq_filter(content_f); |
| 336 |
|
|
| 337 |
|
len = snprintf(content, sizeof(content), "\n\n【 在 %s (%s) 的大作中提到: 】\n", p_article->username, p_article->nickname); |
| 338 |
|
|
| 339 |
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); |
| 340 |
for (i = 0, len = 0; i < quote_content_lines; i++) |
for (i = 0; i < quote_content_lines; i++) |
| 341 |
{ |
{ |
| 342 |
memcpy(content + len, ": ", 2); // quote line prefix |
memcpy(content + len, ": ", 2); // quote line prefix |
| 343 |
len += 2; |
len += 2; |