mlschroe left a comment (rpm-software-management/rpm#3663)
I find the use case of trimming every line in the argument somewhat exotic.
Having said this, I think you can do that already with the current rpm version:
```
%multiline_trim() %{lua:return
(arg[1]:gsub('^%s',''):gsub("\\n%s*","\\n"):gsub("%s*\\n","\\n"):gsub('%s*$',''))}
```
Maybe there's an easier way to do it, I'm not a lua expert.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3663#issuecomment-2732656782
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3663/c2732656...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint