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 ➜ General ➜ Extraneous Linebreaks

Extraneous Linebreaks

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


Posted by BBAlpha   (10 posts)  Bio
Date Sat 20 Nov 2004 09:49 AM (UTC)
Message
Greetings!

I was wondering if there were some easy way to gag blank lines caused by extraneous linebreaks. The MUD I am currently playing has recently added the ability to include linebreaks at the end of each prompt. Lovely, since it simplifies catching prompt values.

On the other hand, there are now all sorts of blank lines showing, as the linebreaks at the beginnings of each message now serve double.

I must apologize if this is a simple matter, but I've been scratching my head over it. I did find the option where triggers can match on blank lines, but I've so far been unable to fathom regex enough to make this work.

I have attempted to trigger on
^\n\r\n\r$
and omit it, sending instead a single linebreak, but this doesn't work. This makes a strange sort of sense, since parsing of triggers waits for linebreaks.

Am I overlooking something?
Top

Posted by BBAlpha   (10 posts)  Bio
Date Reply #1 on Sat 20 Nov 2004 10:09 AM (UTC)
Message
Sometimes, it really is the simplest things...

I found the answer - trigger on ^$ and omit.
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.


11,241 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.