From: <ad...@us...> - 2010-11-06 15:37:32
|
Revision: 1176 http://jtidy.svn.sourceforge.net/jtidy/?rev=1176&view=rev Author: aditsu Date: 2010-11-06 15:37:26 +0000 (Sat, 06 Nov 2010) Log Message: ----------- fixed test 590716 - don't escape ampersand when preserving entities Modified Paths: -------------- branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/PPrint.java Modified: branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/PPrint.java =================================================================== --- branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/PPrint.java 2010-11-06 15:32:05 UTC (rev 1175) +++ branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/PPrint.java 2010-11-06 15:37:26 UTC (rev 1176) @@ -663,7 +663,7 @@ // naked '&' chars can be left alone or quoted as & // The latter is required for XML where naked '&' are illegal. - if (c == '&' && this.configuration.isQuoteAmpersand()) { + if (c == '&' && this.configuration.isQuoteAmpersand() && !configuration.isPreserveEntities()) { addString("&"); return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |