Re: Fix issue with formatting multiple trailer keys
- From
Jeff King <peff@peff.net>
- Date
- Sep 9, 2024, 23:03 UTC
- Message-ID
- <20240909230331.GA921644@coredump.intra.peff.net>
- In-Reply-To
- <5A3FD50B-46F1-4000-8AAD-895A4CB4F33F@alchemists.io>
On Fri, Sep 06, 2024 at 05:09:08PM -0600, Brooke Kuhlmann wrote:
> Use of a custom separator is a nifty trick. Thanks. A little > unintuitive but works. Definitely would be neat if you patch this to > work without the custom separator, though.
The separator will always be required (even if you use multiple %(trailer) blocks), because it overrides the default of terminating with a newline. And we can't switch that default without breaking compatibility for existing users.
So I think after my series you'll have:
%(trailers:key=Files,separator=) %(trailers:key=Duration,separator=)
or similar.
-Peff