From 67c54b2c227dbabb11aebb78bd5d8dea16318d15 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 14 Oct 2011 09:44:32 +0000 Subject: close attributes after printing title git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5429 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/bbs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index e39963df..90217583 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -744,6 +744,7 @@ readdoent(int num, fileheader_t * ent) prints(ANSI_COLOR(1;3%c), color); outs(mark); outc(' '); + special = 1; } else { outs(mark); outc(' '); @@ -754,6 +755,7 @@ readdoent(int num, fileheader_t * ent) outs(ANSI_RESET); title += len_announce; w -= len_announce; + special = 0; } } @@ -769,7 +771,11 @@ readdoent(int num, fileheader_t * ent) } else { outs(title); } - outc('\n'); + + if (special) + outs(ANSI_RESET "\n"); + else + outc('\n'); } int -- cgit v1.2.3