ports/www/tidy-devel/files/patch-console__tidy.c
Thierry Thomas edba2db034 Backport the fix from www/tidy-html5.
PR:		ports/200631
Submitted by:	Walter Hop
Security:	VuXML: bd1ab7a5-0e01-11e5-9976-a0f3c100ae18
2015-06-08 18:06:06 +00:00

12 lines
553 B
C

--- console/tidy.c.orig 2008-03-22 20:53:08 UTC
+++ console/tidy.c
@@ -1031,6 +1031,9 @@ int main( int argc, char** argv )
else if ( strcasecmp(arg, "quiet") == 0 )
tidyOptSetBool( tdoc, TidyQuiet, yes );
+ else if ( strcasecmp(arg, "preserve") == 0 ) /* NOOP for docproj */
+ printf( errout, "Warning: tidy-devel does not honour the -preserve flag\n");
+
else if ( strcasecmp(arg, "help") == 0 ||
strcasecmp(arg, "h") == 0 || *arg == '?' )
{