[Privoxy-devel] tidy -indent -wrap can break <pre> formatting

Lee ler762 at gmail.com
Sat Mar 17 15:15:33 UTC 2018


On 3/17/18, Fabian Keil <fk at fabiankeil.de> wrote:
> Lee <ler762 at gmail.com> wrote:
>
>> On 3/15/18, Fabian Keil <fk at fabiankeil.de> wrote:
>> > Lee <ler762 at gmail.com> wrote:
>> >>
>> >> Just how much manual editing did you do to the generated .html
>> >> files?
>> >
>> > I generally didn't manually edit the HTML files.
>>
>> Why use tidy then?  Seems like the only reason to make the html files
>> human-readable (the docbook sgml -> html results are pretty horrible
>> to look at) would be to edit them.
>
> tidy is used to turn the pages into valid HTML.
>
> At least in the past the Docbook toolchain wasn't
> able to generate valid HTML by itself.

I've been feeding the docbook generated html to the w3 validator
  https://validator.w3.org/#validate_by_upload
and so far the only error has been tables inside of paragraphs.
Apparently this is an error:
  <p><table> ... </table></p>
  Error: No p element in scope but a p end tag seen.

Quick test: remove a <para> from around a <programlisting> in developer.sgml
    <!-- para _LR_ -->
<programlisting>
/* This is not a local include, but requires a path element. */
#include <sys/fileName.h>
</programlisting>
<!-- /para _LR_ -->

make dok & the validator now reports one less error.

I can work on removing <para>s from around elements that get turned
into <table> if you'd like

Lee


More information about the Privoxy-devel mailing list