/[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.25 by sysadm, Tue Sep 30 03:02:06 2025 UTC Revision 1.27 by sysadm, Thu Oct 9 12:20:31 2025 UTC
# Line 118  int article_post(const SECTION_LIST *p_s Line 118  int article_post(const SECTION_LIST *p_s
118                          case 'T':                          case 'T':
119                                  moveto(24, 1);                                  moveto(24, 1);
120                                  clrtoeol();                                  clrtoeol();
121                                  len = get_data(24, 1, "标题: ", title_input, sizeof(title_input), TITLE_INPUT_MAX_LEN, DOECHO);                                  len = get_data(24, 1, "标题: ", title_input, sizeof(title_input), TITLE_INPUT_MAX_LEN);
122                                  for (p = title_input; *p == ' '; p++)                                  for (p = title_input; *p == ' '; p++)
123                                          ;                                          ;
124                                  for (q = title_input + len; q > p && *(q - 1) == ' '; q--)                                  for (q = title_input + len; q > p && *(q - 1) == ' '; q--)
# Line 837  int article_reply(const SECTION_LIST *p_ Line 837  int article_reply(const SECTION_LIST *p_
837                  }                  }
838    
839                  // Apply LML render to content body                  // Apply LML render to content body
840                  len = lml_plain(row[1], content_f, ARTICLE_CONTENT_MAX_LEN, 0);                  len = lml_render(row[1], content_f, ARTICLE_CONTENT_MAX_LEN, 0);
841                  content_f[len] = '\0';                  content_f[len] = '\0';
842    
843                  // Remove control sequence                  // Remove control sequence
# Line 921  int article_reply(const SECTION_LIST *p_ Line 921  int article_reply(const SECTION_LIST *p_
921                          case 'T':                          case 'T':
922                                  moveto(24, 1);                                  moveto(24, 1);
923                                  clrtoeol();                                  clrtoeol();
924                                  len = get_data(24, 1, "标题: ", title_input, sizeof(title_input), TITLE_INPUT_MAX_LEN, DOECHO);                                  len = get_data(24, 1, "标题: ", title_input, sizeof(title_input), TITLE_INPUT_MAX_LEN);
925                                  for (p = title_input; *p == ' '; p++)                                  for (p = title_input; *p == ' '; p++)
926                                          ;                                          ;
927                                  for (q = title_input + len; q > p && *(q - 1) == ' '; q--)                                  for (q = title_input + len; q > p && *(q - 1) == ' '; q--)


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

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