I have a trigger that matches on *PlayerName*. All it does is omit from output... But even though whatever that person says IS omitted, I still get a blank line. Is there any way NOT to get the blank line?
Blank Lines on Text Gags
Posted by Rojan QDel on Thu 19 Jun 2008 05:26 PM — 3 posts, 16,425 views.
Is the blank line perhaps caused by a prompt which follows the tell from the annoying player?
I have been using this trigger to omit all blank lines:
Make sure in File -> Global Preferences -> General that "Regular Expressions an match on an empty string" is checked.
I have been using this trigger to omit all blank lines:
<triggers>
<trigger
enabled="y"
match="^$"
omit_from_output="y"
regexp="y"
sequence="100"
>
</trigger>
</triggers>
Make sure in File -> Global Preferences -> General that "Regular Expressions an match on an empty string" is checked.
A bit of investigation has revealed that some MUDs deliberately send a second blank line after a chat. In other words, if someone chats "hello" you see:
Someone says, hello \n
\n
Where the \n represents a newline. The trigger omits the chatted line, but it can't do much about the second blank line on its own.
The method suggested above will omit the extra blank line. I have made it a plugin, see:
http://www.gammon.com.au/forum/?id=8768
Someone says, hello \n
\n
Where the \n represents a newline. The trigger omits the chatted line, but it can't do much about the second blank line on its own.
The method suggested above will omit the extra blank line. I have made it a plugin, see:
http://www.gammon.com.au/forum/?id=8768