Extraneous Linebreaks

Posted by BBAlpha on Sat 20 Nov 2004 09:49 AM — 2 posts, 11,739 views.

#0
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?
#1
Sometimes, it really is the simplest things...

I found the answer - trigger on ^$ and omit.