[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#892967: lintian: considers .rtf to be a text file, causing false positives



On Thu, Mar 15, 2018 at 02:40:01AM +0000, Chris Lamb wrote:
> So, turns out we can actually fix / "parse" .rtf files quite easily:
> 
>   https://anonscm.debian.org/git/lintian/lintian.git/commit/?id=9dd5cd5f7484f30026d1f63e362e13903a678ac1
> 
> .. so no need to ignore them just yet. :)

+    # strip .rtf paragraph marks (#892967)
+    $text =~ s/\\par\b//gxms;
+

I have some quite strong doubts this is enough: RTF is more like
ASCII-encoded .doc rather than typical markup.  On the other hand, the set
of test cases I have all look this way (although, having come from one
source, they probably have been created the same way).

Thus, it's possibly you'd have to make the stripping smarter "soon". 
Fortunately, as this is the first time despite this lintian warning having
existed for a long time, there is hope that "soon" might be not mean "ever".


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ A dumb species has no way to open a tuna can.
⢿⡄⠘⠷⠚⠋⠀ A smart species invents a can opener.
⠈⠳⣄⠀⠀⠀⠀ A master species delegates.


Reply to: