Changeset 275
- Timestamp:
- May 3, 2007, 12:14:28 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/html_utility.cc
r274 r275 435 435 std::replace(mess.begin(), mess.end(), '\n', ' '); 436 436 mess = htrim(mess); 437 // trunc tate message if too long437 // truncate message if too long 438 438 if (mess.size()>maxlength) 439 439 mess = mess.substr(0,maxlength-3) + "..."; … … 446 446 for (ss.get(c); ss.good(); ss.get(c)) { 447 447 if (c=='#') { 448 std::string str; 449 ss >> str; 450 if (is_int(str)) 451 os << anchor(conf->trac_ticket()+str,"#"+str); 452 else 453 hs << "#" << str; 448 int ticket=0; 449 ss >> ticket; 450 if (!ss.fail()){ 451 std::stringstream s; 452 s << ticket; 453 os << anchor(conf->trac_ticket()+s.str(),"#"+s.str()); 454 } 455 else { 456 ss.clear(std::ios::goodbit); 457 hs << c; 458 } 454 459 } 455 460 else
Note: See TracChangeset
for help on using the changeset viewer.