#35673 [Sus]: formatOutput does not work with saveHTML

From: Date: Thu, 15 Dec 2005 06:26:14 +0000
Subject: #35673 [Sus]: formatOutput does not work with saveHTML
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90451@lists.php.net to get a copy of this message
ID: 35673 User updated by: ken at smallboxsoftware dot net Reported By: ken at smallboxsoftware dot net Status: Suspended Bug Type: DOM XML related Operating System: Linux PHP Version: 5.1.1 New Comment: Would libxml function htmlNodeDumpFormatOutput not suffice in this case? Previous Comments: ------------------------------------------------------------------------ [2005-12-15 01:02:27] rrichards@php.net Will fix once suitable api exists in libxml2 for this. currently only works when saving to file without duplicating all the routines needed. ------------------------------------------------------------------------ [2005-12-14 23:16:21] ken at smallboxsoftware dot net Description: ------------ saveHTML does not appear to format output. I assume it is supposed to because the manual entry for this function shows ->formatOutput = true From the C code for the function: DOM_GET_OBJ(docp, id, xmlDocPtr, intern); htmlDocDumpMemory(docp, &mem, &size); as opposed for the C function for saveHTMLFile which does appear to format output: DOM_GET_OBJ(docp, id, xmlDocPtr, intern); /* encoding handled by property on doc */ doc_props = dom_get_doc_props(intern->document); format = doc_props->formatoutput; bytes = htmlSaveFileFormat(file, docp, NULL, format); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35673&edit=1

« previous php.bugs (#90451) next »