-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Skip mapping over undeclared prop in \ShowHook
etc.
#1515
Conversation
dfdfa13
to
82bd1a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code and changes look fine, and rollback is not needed here, but I think a short news entry would normally be included - just something like Showing hooks gave a low-level error if the hook was undeclared; this has now been corrected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ltnews as suggested by Joseph
{ ! \prop_if_exist_p:c { g_@@_#1_code_prop } } | ||
{ \prop_if_empty_p:c { g_@@_#1_code_prop } } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, it might be worth putting in a short comment why this is necessary, ie that a non-existent prop would return "empty" = true but that fail when mapping over it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rubbish, would be empty = false ....
I'm not so familiar with hooks implementation, so maybe there're more uncaught similar cases.
Rollback needed? Only
\ShowHook
,\LogHook
and friends are affected.ltnews40.tex
entry not added. Maybe after #1512 gets merged?Internal housekeeping
Status of pull request
Checklist of required changes before merge will be approved
\changes
entries in source includedchanges.txt
updatedltnewsX.tex
(and/orlatexchanges.tex
) updated