scandum / tintin

TinTin++, aka tt++, is an extensible console MUD client.
https://tintin.mudhalla.net
GNU General Public License v3.0
201 stars 56 forks source link

How can I avoid the same line being gagged twice by `#line gag` and `#gag`? #147

Closed dzpao closed 1 year ago

dzpao commented 1 year ago

How can I avoid the same line being gagged twice by #line gag and #gag?

I may not have made my question clear. Please see the following example:

#gag {hello test}
#action {hello test} {#sh HELLO TEST; #line gag}
#sh hello test; #sh LINE 2222; #sh LINE 3333; #sh LINE 4444
HELLO TEST
LINE 3333
LINE 4444

What happened was that I did a retouching of some lines in one place, replacing the initial text with an edited replacement, so I would think of using #show to output the new replacement, and #line gag to suppress the initial text.

Unfortunately, however, the initial text also triggers another #gag rule, which causes it to be gagged twice, with the actual result that the line of text after it is incorrectly gagged.

I haven't thought of any way to avoid this yet, so I'm sending this issue for help.

scandum commented 1 year ago

Should be fixed in the beta.