Control: retitle -1 buggy magic: mistakes text as diff when starting with "*** "

On 2014-04-16 12:46:46 +0200, Vincent Lefevre wrote:
> The attached text file is regarded as "diff output" by file:
[...]

This happens when the file starts with "*** " (3 stars and a space).
Checking only for these 4 characters is just silly!

Two solutions:

1. Check that the second line starts with "--- " (possibly check the
third line as well, and this should be sufficient). See

  https://en.wikipedia.org/wiki/Diff#Context_format

for an example.

2. If this is too complex, remove the support for this "context" diff
format, as it is more or less obsolete.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to