Changeset 13850


Ignore:
Timestamp:
05/23/12 21:32:16 (12 years ago)
Author:
tbretz
Message:
Small improvements for the output of the dimctrl messages
Location:
trunk/FACT++
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/smartfact.cc

    r13849 r13850  
    475475            return;
    476476
    477         const string str  = fControlMessageHist.size()>0 ? fControlMessageHist.back() : "<pre>  :  :  </pre> ";
    478         const string time = "<pre>"+d.GetTimeAsStr("%H:%M:%S")+"</pre> ";
     477        const string str  = fControlMessageHist.size()>0 ? fControlMessageHist.back() : "        ";
     478        const string time = d.GetTimeAsStr("%H:%M:%S ");
    479479
    480480        ostringstream tst;
     
    482482
    483483        string msg;
    484         msg += str.substr(0, time.length())==time ? "<pre>        </pre> " : time;
    485         msg += d.Ptr<char>();
     484        msg += str.substr(0, time.length())==time ? "--:--:-- " : time;
     485        msg += "<->"+string(d.Ptr<char>())+"</->";
    486486
    487487        fControlMessageHist.push_back(msg);
  • trunk/FACT++/www/smartfact/index.js

    r13849 r13850  
    10111011        form = form.replace(/<([\+-])>/g, "<font size='$11'>");
    10121012        form = form.replace(/<\/([#\+-])>/g, "</font>");
     1013        form = form.replace(/([0-9][0-9]):([0-9][0-9]):([0-9][0-9])/g,
     1014                            "<pre>$1</pre>:<pre>$2</pre>:<pre>$3</pre>");
     1015        form = form.replace(/--:--:--/g, "<pre>  </pre> <pre>  </pre> <pre>  </pre>");
    10131016
    10141017        var newe = document.createElement("div");
Note: See TracChangeset for help on using the changeset viewer.