Commit c87e337c authored by rswindell's avatar rswindell
Browse files

When displaying message body text, skip all initial white-space and strip all

trailing white-space.
parent ca1550d9
......@@ -254,8 +254,13 @@ void sbbs_t::show_msg(smbmsg_t* msg, long mode, post_t* post)
if((txt=smb_getmsgtxt(&smb,msg,(console&CON_RAW_IN) ? 0:GETMSGTXT_PLAIN)) != NULL) {
if(!(console&CON_RAW_IN))
mode|=P_WORDWRAP;
putmsg(txt, mode);
char* p = txt;
truncsp(p);
SKIP_WHITESPACE(p);
putmsg(p, mode);
smb_freemsgtxt(txt);
if(column)
CRLF;
}
if((txt=smb_getmsgtxt(&smb,msg,GETMSGTXT_TAIL_ONLY))!=NULL) {
putmsg(txt, mode&(~P_WORDWRAP));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment