diff -urN -x tidy.exe -x tidy.suo -x *.obj -x *.ncb -x *.sln -x *.vcproj -x *.pdb -x *.idb -x *.ilk -x *.pch -x *.lib -x BuildLog.htm -x upd.bat -x update.mak -x Debug -x DebugDLL -x Release -x ReleaseDLL -x CVS -x diff tidycvs\src\parser.c tidytest\src\parser.c --- tidycvs\src\parser.c Sat Feb 18 12:32:45 2006 +++ tidytest\src\parser.c Thu Feb 23 14:24:45 2006 @@ -4165,9 +4165,9 @@ Lexer* lexer = doc->lexer; Node *node; - /* if node is pre or has xml:space="preserve" then do so */ - - if ( XMLPreserveWhiteSpace(doc, element) ) + /* if node is pre or has xml:space="preserve" then do so, + OR for bug: 1365706 if user adds the option --add-xml-space yes */ + if ( cfgBool(doc, TidyXmlSpace) || XMLPreserveWhiteSpace(doc, element) ) mode = Preformatted; while ((node = GetToken(doc, mode)) != NULL)