summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2011-10-14 17:44:32 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2011-10-14 17:44:32 +0800
commit67c54b2c227dbabb11aebb78bd5d8dea16318d15 (patch)
treed6bbfc7b8700a06bac126900dbf8d1271f72bd67
parent03c0e52dc3a6534362728cd15d7148c8485e8174 (diff)
downloadpttbbs-67c54b2c227dbabb11aebb78bd5d8dea16318d15.tar
pttbbs-67c54b2c227dbabb11aebb78bd5d8dea16318d15.tar.gz
pttbbs-67c54b2c227dbabb11aebb78bd5d8dea16318d15.tar.bz2
pttbbs-67c54b2c227dbabb11aebb78bd5d8dea16318d15.tar.lz
pttbbs-67c54b2c227dbabb11aebb78bd5d8dea16318d15.tar.xz
pttbbs-67c54b2c227dbabb11aebb78bd5d8dea16318d15.tar.zst
pttbbs-67c54b2c227dbabb11aebb78bd5d8dea16318d15.zip
close attributes after printing title
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5429 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c8
1 files changed, 7 insertions, 1 deletions
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