Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: RunLogSummary

  1. #11
    Senior Member ckb's Avatar
    Join Date
    Mar 2006
    Posts
    980

    Default

    For me, RunLogSum seems to cut off the last character of most of the fields it records (so adventures are "The Haunted Pantr"). I assume this is because of the code that tries to cut off the newlines. Maybe you could replace it with a trim()/split() kind of function? Happy to post a patch if that would be helpful.
    Originally Posted by ikzann View Post
    Can you post your raw session logs so I can see what is happening?
    Also, what OS are you using?
    Last edited by ckb; 07-09-2020 at 03:12 PM.

  2. #12
    Junior Member
    Join Date
    Apr 2020
    Posts
    9

    Default

    Yep. This is on Mac so I suspect it's a line ending issue of some form.

    https://www.dropbox.com/s/yezywoh5gk..._0123.txt?dl=0
    https://www.dropbox.com/s/8vfloog9hr..._0123.txt?dl=0

  3. #13
    Junior Member
    Join Date
    Apr 2020
    Posts
    9

    Default

    Replacing the three substring calls with the following strip function fixed the issue:


    string strip(string input) {
    matcher start = create_matcher("^\\s+", input);
    input = start.replace_all("");
    matcher end = create_matcher("\\s+$", input);
    return end.replace_all("");
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •