From dd0cbeacdb03e799f05d24ef554ffa9d8394cc38 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Mon, 26 Oct 2020 11:55:44 +0000 Subject: [PATCH] Fix #77890: DOMDocument XML formatting (formatOutput) doesn't seem to work git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351000 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/dom/domdocument.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/reference/dom/domdocument.xml b/reference/dom/domdocument.xml index 1f88ecee63..ca359f1f9b 100644 --- a/reference/dom/domdocument.xml +++ b/reference/dom/domdocument.xml @@ -221,7 +221,11 @@ formatOutput - Nicely formats output with indentation and extra space. + + Nicely formats output with indentation and extra space. + This has no effect if the document was loaded with + preserveWhitespace enabled. + @@ -236,7 +240,11 @@ preserveWhiteSpace - Do not remove redundant white space. Default to &true;. + + Do not remove redundant white space. Default to &true;. + Setting this to &false; has the same effect as passing LIBXML_NOBLANKS + as option to DOMDocument::load etc. +