-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Empty Define breaks subsequent macros #4017
Comments
You are right. The
|
If you add a character "." to the empty-macro it works as expected.
|
What's the purpose of the |
The empty macro is never something I intended to do but it has happened a few times as I have tried to build more complex macros. When macros are used as variables I try and define them so they can be referenced inside another macro but sometimes I slip up. It would never be a problem if it was not so easy to overlook and the symptoms quite odd. It would just be nice if it failed more gracefully if not with a message. Regards |
Yes, this happens to me too. I think it is a matter of personality (scattered multi-tasking vs focussed). |
duplicate of: Bug: empty macro definitions don't parse as expected #3460 |
Close in favour of the duplicate #3460 but I hope it is addressed. Another use case is coding with the output preview displayed. In some cases this can give invalid values and generate list of all tiddlers and other time consuming artifacts. |
This seems like a different issue than #3460. I created a PR for it at #7911 and it does not address this issue. To me, the OP looks like a set of valid nested macros:
How can the above be distinguished from nested macros ( |
I believe the rule is to nest "macros" you need to name the outer macros in the Your example does not use this suggested approach, but still works. but possibly not in all cases.
However I would also point out you are using the deprecated Note that this Issue was raised in AnthonyMuscio opened this issue on Jun 25, 2019
But the problem remains is still not resolved in two cases;
The above will "break" subsequent macros. And the same happens with the new |
The rule is to nest "macros" you need to name the outer macros in the Your example does not use this suggested approach, but still works. but possibly not in all cases.
However I would also point out you are using the deprecated Note that this Issue was raised in AnthonyMuscio opened this issue on Jun 25, 2019
But the reason is still not resolved in two cases;
The above will "break" subsequent macros. including for |
Hi @btheado as @AnthonyMuscio says, I think the example in the OP is missing an
@AnthonyMuscio that's the issue in #3460 which remains unfixed at the moment. |
If in a tiddler one does this
\define empty-macro()
\define valid-macro() any content
\define multi-line-macro()
Content of valid macro
\end
The empty-macro will cause the remainder of the tiddlers macro definitions not be recognised.
This is hard to debug, so could we fix the "fault" caused by empty macros?
Thanks Tony
The text was updated successfully, but these errors were encountered: