[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
Sun Oct 7 09:44:37 UTC 2018
When packaging something that needs multiple subpackages, one will typically reuse part of the description. To reduce maintenance shores (fixing multiple copies when an error is detected) this common block is typically put in an expanded rpm variable
```specfile
%global common_description %{expand:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
}
[…]
%description sub1
%{common_description}
This package provides sub1 functionnality.
[…]
%description sub2
%{common_description}
This package provides sub2 functionnality.
```
That works but the drawback is that the resulting descriptions will be full on leading and ending empty lines, with many intermediate empty lines.
Please autotrim leading and ending empty lines in description, shrink multiple intermediary empty lines to one, tehy add no info to end users.
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181007/6ac70a4f/attachment.html>
More information about the Rpm-maint
mailing list