Skip to content
New issue

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

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

Closed
dzpao opened this issue Dec 6, 2022 · 1 comment
Closed

Comments

@dzpao
Copy link
Contributor

dzpao commented Dec 6, 2022

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.

dzpao added a commit to dzpao/tintin that referenced this issue Dec 6, 2022
@scandum
Copy link
Owner

scandum commented Dec 6, 2022

Should be fixed in the beta.

@scandum scandum closed this as completed Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants