[Rpm-maint] [rpm-software-management/rpm] RFE: Autotrim leading and ending empty lines in description, shrink multiple intermediary empty lines to one (#566)

nim-nim notifications at github.com
Sat Oct 13 09:08:33 UTC 2018


Anyway `%{shrink:...}` is no good for this.

What you'd want is something similar to

```sh
sed 's|^[[:blank:]]*$||g' |  sed '/^$/N;/^\n$/D' | sed '/./,$!d' | tac | sed '/./,$!d' | tac | fold -s
```
in a `%{text:...}` verb which is applied automatically to descriptions

-- 
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/566#issuecomment-429524590
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181013/73ea683f/attachment.html>


More information about the Rpm-maint mailing list