alf.sicili...@gmail.com wrote on Sat, Dec 07, 2019: > On debian we have the same version of libtidy, but debian sid hasn't the last > version of edbrowse, so I' m using the old 3.7.5.1-1, if you have compiled > the last version we are tring a different version. > > Anyway, on FreeBSD, I have the last version release 3.7.6 (and git master), > if I change > from > tidyOptSetBool(tdoc, TidyStyleTags, no); > to > tidyOptSetInt(tdoc, TidyStyleTags, no); > > the runtime output is: > > ./edbrowse > .ebrc: unrecognized keyword linelength at line 49 > edbrowse ready > b www.google.com > 12613 > Assertion failed: (option_defs[ optId ].type == TidyInteger), function > prvTidySetOptionInt, file > /usr/ports/www/tidy-html5/work/tidy-html5-5.7.28/src/config.c, line 487. > Abort (core dumped)
TidyStyleTags is a bool, no matter how you look at it, trying to change it to int without understanding what we are doing is not going to help. I tried rebuilding edbrowse on a debian sid and it works fine here, I think he either had old build artefact built with previous tidy version linked with a newer version -- tidy reordered the fields of the enum so the values will have changed. I think it is unrelated to the problem you had on FreeBSD anyway, as he says there is no libtidy-0.99 on his system. -- Dominique