Ignore:
Timestamp:
May 17, 2007, 8:49:09 PM (14 years ago)
Author:
Peter Johansson
Message:

fixing truncation issue in log message. fixes #188

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/first_page.cc

    r312 r317  
    182182      std::replace(mess.begin(), mess.end(), '\n', ' ');
    183183      mess = htrim(mess);
    184       // truncate message if too long
    185       if (mess.size()>maxlength)
    186         mess = mess.substr(0,maxlength-3) + "...";
    187 
    188       if (conf.trac_root().empty())
     184
     185      if (conf.trac_root().empty()) {
     186        // truncate message if too long
     187        if (mess.size()>maxlength)
     188          mess = mess.substr(0,maxlength-3) + "...";
    189189        hs << mess;
     190      }
    190191      else {// make anchors to trac
    191192        Trac trac(hs);
    192         trac.print(mess);
     193        trac.print(mess, maxlength);
    193194      }
    194195
Note: See TracChangeset for help on using the changeset viewer.