1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/www/tidy/files/patch-ah
Alexey Zelkin 29ff18f4bd Add new option '-preserve' to preserve characters entities from source file
(i.e. leave them undecoded into plain characters). This feature will be utilized
by translation teams and was successfuly tested against Russian and Japanese
Translation Projects.

Also add simple hack to not to display annoying "Can't open ~/.tidyrc" warning
message in case if ~/.tidyrc file missing.

Bump PORTREVISION.

Approved by:    Scott Kenney <saken@hotel.rmta.org> (maintainer)
Tested by:      myself, hrs
2001-11-22 15:26:43 +00:00

12 lines
432 B
Plaintext

--- tidy.c.orig Fri Aug 4 19:21:05 2000
+++ tidy.c Mon Nov 19 14:39:50 2001
@@ -785,6 +785,8 @@
Quiet = yes;
else if (strcmp(arg, "slides") == 0)
BurstSlides = yes;
+ else if (strcmp(arg, "preserve") == 0)
+ PreserveEntities = yes;
else if (strcmp(arg, "help") == 0 ||
argv[1][1] == '?'|| argv[1][1] == 'h')
{