diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 15:49:46 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 15:49:46 +0000 |
commit | 5fef74e277a1a8631418cc86635c091fcc79d099 (patch) | |
tree | 1f91b768812d879efc689dc94c0aa53e7c1ba2fa /www/tidy/files/patch-lexer.c | |
parent | - Add LICENSE (diff) |
Rename www/ patch-xy patches to reflect the files they modify.
Diffstat (limited to 'www/tidy/files/patch-lexer.c')
-rw-r--r-- | www/tidy/files/patch-lexer.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/www/tidy/files/patch-lexer.c b/www/tidy/files/patch-lexer.c new file mode 100644 index 000000000000..fb56ac67c400 --- /dev/null +++ b/www/tidy/files/patch-lexer.c @@ -0,0 +1,24 @@ +--- 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); |