On 11 May 2022, at 12:52, Gilles wrote: > I tried it before asking, but tidy fails with a few errors I don't > understand. Here's the output from a full file (not the sample I uploaded): > > line 9 column 1 - Error: unexpected in > > line 68 column 87 - Error: unexpected in > > line 73 column 1 - Error: unexpected in > > line 108 column 1 - Error: unexpected in > > line 110 column 1 - Error: unexpected in > > Tidy found 0 warnings and 5 errors!
What are we supposed to do with the errors from a file you don't provide? Tidy will use heuristics to guess which form of HTML you've passed it and you should use the configuration options to reduce the errors it reports. But it looks like you've passed it a PHP source file, which isn't PHP, so it's not surprising it isn't entirely happy. Please provide a sample file and the configuration you use to invoke it. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Sengelsweg 34 Düsseldorf D- 40489 Tel: +49-203-3925-0390 Mobile: +49-178-782-6226 _______________________________________________ lxml - The Python XML Toolkit mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/lxml.python.org/ Member address: [email protected]
