On 2020-05-17 09:13:56 +0200, Christoph Biedl wrote:
> Vincent Lefevre wrote...
> 
> > The file utility misidentifies wikicode '''foo''' as troff.
> 
> Thanks for already forwarding upstream, let's see what will happen there.
> 
> Just a clarification, AFAICS this is valid troff as well, and probably
> the submitter assumed that sequence does not appear anywhere else and
> use it for identification:
> 
> https://github.com/file/file/blob/master/magic/Magdir/troff#L17
> 
> Sorting this out is not an easy job.

Well, the triple quote just means bold text in wikicode. Thus it can
appear at arbitrary places. Note also that it is also used in some
programming languages (e.g. Python). So basing the recognition on
the occurrence of this sequence only is too ambiguous.

-- 
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)

Reply via email to