We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#event {SEND OUTPUT} #EVENT {SEND OUTPUT} { #format {lineout} {%p} {%0}; #echo {<199>SENT:<099> %s} {$lineout} ; #unvariable {lineout} } /* expected behavior: */ look SENT: look
#EVENT {SEND OUTPUT} { #format {lineout} {%p} {%0}; #echo {<199>SENT:<099> %s <199>MORE TEXT<099>} {$lineout} ; #unvariable {lineout} }
/* unexpected behavior: / look MORE TEXT / expected behavior would have been: */ look SENT: look MORE TEXT
/* outside of the event, #echo works as expected */ #echo {<199>SENT:<099> %s <199>MORE TEXT<099>} {testing output} SENT: testing output MORE TEXT
The text was updated successfully, but these errors were encountered:
It's somewhat explained in #help event
#help event
SEND OUTPUT %0 raw text %1 size
%0 contains the raw text, which includes the \r\n newline sequence.
\r\n
One thing you could do is:
#EVENT {SEND OUTPUT} { #format {lineout} {%p} {%0}; #replace lineout {\r\n} {}; #echo {<199>SENT:<099> %s <199>MORE TEXT<099>} {$lineout} ; #unvariable {lineout} }
In the latest beta however #format %p will strip trailing newlines. So if you were expecting %p to strip new lines, that has been fixed.
#format %p
Sorry, something went wrong.
No branches or pull requests
#event {SEND OUTPUT}
#EVENT {SEND OUTPUT}
{
#format {lineout} {%p} {%0};
#echo {<199>SENT:<099> %s} {$lineout} ;
#unvariable {lineout}
}
/* expected behavior: */
look
SENT: look
#EVENT {SEND OUTPUT}
{
#format {lineout} {%p} {%0};
#echo {<199>SENT:<099> %s <199>MORE TEXT<099>} {$lineout} ;
#unvariable {lineout}
}
/* unexpected behavior: /
look
MORE TEXT
/ expected behavior would have been: */
look
SENT: look MORE TEXT
/* outside of the event, #echo works as expected */
#echo {<199>SENT:<099> %s <199>MORE TEXT<099>} {testing output}
SENT: testing output MORE TEXT
The text was updated successfully, but these errors were encountered: