Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Bug reports ➜ Does MUSHClient strip spaces at the end of line in logs?

Does MUSHClient strip spaces at the end of line in logs?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by j0nas   (56 posts)  Bio
Date Mon 01 Sep 2003 08:39 PM (UTC)
Message
Does MUSHClient strip spaces at the end of lines when writing them into logs? From what I've seen, this is the case, and this came as quite a disappointment.

I've written a custom script to parse input from my MUD, and now I've discovered that not only is parsing my log through this script hard, it's plain impossible since the output from the logs is different from the output from the game, making many of my regexp's completely non-working.

If this absolutely has to be the default behaviour, there should at least be a toggle to have lines written as they are seen, minus color. I suspect the raw-toggle, undocumented in my version of MUSHClient, will log EVERYTHING, but since that would probably include color-codes too, it'd break my regexp's nonetheless.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Mon 01 Sep 2003 09:18 PM (UTC)
Message
I asked a similar question not long ago, and the answer is to enclose your log file in <pre></pre>. Try putting <pre> in the preamble, and </pre> in the postamble, and it should work.

This means "pre-formatted", i.e. keep spaces and whatnot.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by j0nas   (56 posts)  Bio
Date Reply #2 on Mon 01 Sep 2003 10:16 PM (UTC)
Message
Erm, that doesn't make sense?
I need the text exactly as it's displayed to me by the game, adding text before and after the text, further polluting my log, will only make it worse?
Top

Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Reply #3 on Mon 01 Sep 2003 10:49 PM (UTC)
Message
He means when you are logging as HTML... It should log spaces at the end, let me test it...

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Reply #4 on Mon 01 Sep 2003 10:51 PM (UTC)
Message

Poromenos this is a friggen test                                

It logs spaces OK...

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #5 on Mon 01 Sep 2003 11:21 PM (UTC)
Message
Seems to log the trailing spaces to me. I just did a test.

In any case, surely trailing spaces could be checked for in a regexp? However, it should log exactly what it received, unless you have "omit from log" in a trigger, or are logging commands as well, and they end up in the middle of MUD output.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by j0nas   (56 posts)  Bio
Date Reply #6 on Tue 02 Sep 2003 03:34 PM (UTC)
Message
Yes, you're right, it does seem to log properly. Something's whack with my old logs though, but any recent logs are ok. Must be something I've done on my end, sorry for placing the blame prematurely. :)
Top

Posted by Shadowfyr   USA  (1,791 posts)  Bio
Date Reply #7 on Tue 02 Sep 2003 06:57 PM (UTC)
Message
If you loaded any of the old logs into and editor, a lot of ones not specifically designed for code, and even a few that are, tend to delete excess spaces at the end of a line if you then save the file. Usually this is a good thing, but not in this case.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


19,574 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.