[Rpm-maint] [rpm-software-management/rpm] BUG Please fix parsing of empty lines in %{lua: } blocks (#580)

nim-nim notifications at github.com
Fri Jan 11 14:32:07 UTC 2019


Well here you have an example where `%{lua:` is used for a lua block not to abuse anything, and it would be completely weird and un-intuitive to have to escape the single empty line and not all the other end of lines.

However I should also say that having to sprinkle `\`s all over your macro code is a major PITA, and I’m not surprised `%{expand:` is massively used to force the parser to ingest plain readable code. In fact I’m quite sure the only reason everyone is not doing it is that so few packagers are aware of this `%{expand:`property. 

So from a pure user friendliness POW, it’s not an abuse at all and it would be great to fix the remaining “empty lines need escaping” wart. And maybe even add a `%{code:` container that does no variable expansion at all and just retains the “forget about `\`s” property.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/580#issuecomment-453534982
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190111/04c24659/attachment.html>


More information about the Rpm-maint mailing list