mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
29ff18f4bd
(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
25 lines
779 B
Plaintext
25 lines
779 B
Plaintext
--- lexer.c.orig Fri Aug 4 19:21:05 2000
|
|
+++ lexer.c Thu Nov 15 21:44:03 2001
|
|
@@ -1517,8 +1517,10 @@
|
|
|
|
continue;
|
|
}
|
|
- else if (c == '&' && mode != IgnoreMarkup)
|
|
- ParseEntity(lexer, mode);
|
|
+ else if (c == '&' && mode != IgnoreMarkup
|
|
+ && !PreserveEntities) {
|
|
+ ParseEntity(lexer, mode);
|
|
+ }
|
|
|
|
/* this is needed to avoid trimming trailing whitespace */
|
|
if (mode == IgnoreWhitespace)
|
|
@@ -2624,7 +2626,7 @@
|
|
seen_gt = yes;
|
|
}
|
|
|
|
- if (c == '&')
|
|
+ if (c == '&') /* XXX: possibly need support for PreserveEntities */
|
|
{
|
|
AddCharToLexer(lexer, c);
|
|
ParseEntity(lexer, null);
|