In the devscripts package currently in Debian testing (2.22.2), wrap-and-sort
has opt-in support for preserving comments in deb822 control files such as debian/control
and debian/tests/control
. Currently, this is an opt-in feature to provide some exposure without breaking anything.
To use the feature, add --experimental-rts-parser
to the command line. A concrete example being (adjust to your relevant style):
wrap-and-sort --experimental-rts-parser -tabk
Please provide relevant feedback to #820625 if you have any. If you experience issues, please remember to provide the original control file along with the concrete command line used.
As hinted above, the option is a temporary measure and will be removed again once the testing phase is over, so please do not put it into scripts or packages. For the same reason, wrap-and-sort
will emit a slightly annoying warning when using the option.
Enjoy.