--- lbbs/src/article_cache.c 2025/06/03 03:14:51 1.12 +++ lbbs/src/article_cache.c 2025/06/11 12:31:51 1.15 @@ -111,7 +111,7 @@ int article_cache_generate(const char *c p_article->username, p_article->nickname, p_section->sname, p_section->stitle, p_article->title, BBS_name, str_sub_dt); snprintf(footer, sizeof(footer), - "--\n%s¡ù À´Ô´: %s http://%s [FROM: %s]\033[m\n", + "\n--\n%s¡ù À´Ô´: %s http://%s [FROM: %s]\033[m\n\n", BBS_article_footer_color[p_article->aid % BBS_article_footer_color_count], BBS_name, BBS_server, sub_ip); @@ -122,7 +122,7 @@ int article_cache_generate(const char *c if (header_len != cache.line_offsets[header_line_cnt]) { - log_std("Header of article(aid=%d) is truncated from %ld to %ld\n", p_article->aid, header_len, cache.line_offsets[header_line_cnt]); + log_common("Header of article(aid=%d) is truncated from %ld to %ld\n", p_article->aid, header_len, cache.line_offsets[header_line_cnt]); header_len = (size_t)cache.line_offsets[header_line_cnt]; } @@ -134,7 +134,7 @@ int article_cache_generate(const char *c if (cache.data_len - header_len != (size_t)cache.line_offsets[cache.line_total]) { - log_std("Body of article(aid=%d) is truncated from %ld to %ld\n", + log_common("Body of article(aid=%d) is truncated from %ld to %ld\n", p_article->aid, cache.data_len - header_len, cache.line_offsets[cache.line_total]); cache.data_len = header_len + (size_t)(cache.line_offsets[cache.line_total]); } @@ -148,7 +148,7 @@ int article_cache_generate(const char *c if (footer_len != cache.line_offsets[cache.line_total + footer_line_cnt]) { - log_std("Footer of article(aid=%d) is truncated from %ld to %ld\n", + log_common("Footer of article(aid=%d) is truncated from %ld to %ld\n", p_article->aid, footer_len, cache.line_offsets[cache.line_total + footer_line_cnt]); footer_len = (size_t)(cache.line_offsets[cache.line_total + footer_line_cnt]); }