/[LeafOK_CVS]/lbbs/src/article_post.c
ViewVC logotype

Diff of /lbbs/src/article_post.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.35 by sysadm, Thu Oct 30 07:51:47 2025 UTC Revision 1.36 by sysadm, Thu Oct 30 11:15:12 2025 UTC
# Line 850  int article_reply(const SECTION_LIST *p_ Line 850  int article_reply(const SECTION_LIST *p_
850                  }                  }
851    
852                  // Apply LML render to content body                  // Apply LML render to content body
853                  len = lml_render(row[1], content_f, ARTICLE_CONTENT_MAX_LEN, SCREEN_COLS - 3, 1);                  len = lml_render(row[1], content_f, ARTICLE_CONTENT_MAX_LEN, MAX_EDITOR_DATA_LINE_LENGTH - 3, 1);
854                  content_f[len] = '\0';                  content_f[len] = '\0';
855    
856                  // Remove control sequence                  // Remove control sequence
# Line 860  int article_reply(const SECTION_LIST *p_ Line 860  int article_reply(const SECTION_LIST *p_
860                                             "\n\n【 在 %s (%s) 的大作中提到: 】\n",                                             "\n\n【 在 %s (%s) 的大作中提到: 】\n",
861                                             p_article->username, p_article->nickname);                                             p_article->username, p_article->nickname);
862    
863                  quote_content_lines = split_data_lines(content_f, SCREEN_COLS, line_offsets, ARTICLE_QUOTE_MAX_LINES + 1, 0, NULL);                  quote_content_lines = split_data_lines(content_f, MAX_EDITOR_DATA_LINE_LENGTH - 2, line_offsets, ARTICLE_QUOTE_MAX_LINES + 1, 0, NULL);
864                  for (i = 0; i < quote_content_lines; i++)                  for (i = 0; i < quote_content_lines; i++)
865                  {                  {
866                          memcpy(content + len, ": ", 2); // quote line prefix                          memcpy(content + len, ": ", 2); // quote line prefix


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1