On Mon, Sep 20, 2021 at 10:33:35AM +0800, Paul Wise wrote: > On Sun, 2021-09-19 at 12:05 +0000, Jelmer Vernooij wrote: > > > * Clarify that --allow-reformatting will in some cases strip comments. > > Closes: #946744 > > Is it possible to avoid that stripping?
Not really when --allow-reformatting is specified. lintian-brush attempts to preserve formatting and comments by default, but the parsers for some file formats don't support that. This flag allows you to force rewriting of the file without preserving things that are semantically meaningful (like whitespace or comments). It's rare that parsers that can't preserve whitespace can preserve comments, and it's hard to programmatically detect what is being stripped exactly when a file can't be reproduced byte for byte. Jelmer
signature.asc
Description: PGP signature