-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Start Resources :counter first time they're used #4335
Comments
Thank you for taking care of this quickly! I confirm the fix; the exact same test in #4334 now works! |
The older test in #4334 worked fine. But right now, I was trying to create a test case using the params used in 7b472e4 with 4 resource files ( Here is the test case: [[resources]]
src = "*specs.pdf"
title = "Specifications #:counter"
[[resources]]
src = "**.pdf"
name = "pdf-file-:counter" It looks like the name and title counters are not yet independent..
It's as if the matcher with Do I need to create a new issue for this? Or can you reopen this? Update (2018/01/29): The same test case now shows the correct results after the fix in df20b05. Thank you! |
Yes, this is by design. The counter is an item counter, but maybe we could loosen up on that restriction. But in general, I'm not too keen on discussions in closed issues. I almost never read notifications on those. But don't start a new for this, I will think about it. |
This is the most flexible with the current syntax, and probably what most people would expcect. Updates #4335
Thanks for fixing this! The same test now shows the intended results. 👍 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello,
This is a follow-up issue which proposes a fix for the issue in #4334.
Here's a copy of the proposal from the discussion on discourse for convenience:
In the example I provided, there are 3 PDF files, and I wanted to first set the
title
of just one pdf file.So the alternative you provided:
would not work, as that would auto-set the titles of all 3 PDF files.
I thought that my original example:
was unambiguous.. set
title
for just one file and counter-basedname
for all files.How about:
"An individual counter should be grouped to matcher for each
title
andname
, but only for the entities that use the:counter
placeholder."So in the example I posted, the counter will be grouped only with the second matcher, as only that uses
:counter
.But if the example had been:
"documents/photo_specs.pdf"
would get atitle
like"PDF s #1"
, butname
like"pdf-file-3"
. This was quite an arbitrary example, and thus an arbitrary outcome.But this would then allow a normal example like in my original post to work exactly as expected.
The text was updated successfully, but these errors were encountered: