phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] [18591] Fix the xmltools for a right output in the xs


From: Caeies
Subject: [Phpgroupware-cvs] [18591] Fix the xmltools for a right output in the xslt cases
Date: Wed, 04 Jun 2008 17:34:34 +0000

Revision: 18591
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18591
Author:   Caeies
Date:     2008-06-04 17:34:34 +0000 (Wed, 04 Jun 2008)

Log Message:
-----------
Fix the xmltools for a right output in the xslt cases

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.xmltool.inc.php

Modified: trunk/phpgwapi/inc/class.xmltool.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.xmltool.inc.php    2008-06-04 13:15:12 UTC (rev 
18590)
+++ trunk/phpgwapi/inc/class.xmltool.inc.php    2008-06-04 17:34:34 UTC (rev 
18591)
@@ -499,7 +499,7 @@
                                        foreach ( $this->attributes as $key => 
$val )
                                        {
                                                $val = htmlspecialchars($val, 
ENT_QUOTES, 'UTF-8');
-                                               $result .= " {$key}=\"{$val}\n";
+                                               $result .= " {$key}=\"{$val}\"";
                                        }
                                }
 
@@ -526,7 +526,10 @@
                                                        if ( 
strlen($this->data) > 30 && !empty($this->indentstring) )
                                                        {
                                                                $this->data = 
htmlspecialchars($this->data, ENT_QUOTES, 'UTF-8');
-                                                               $result .= 
"\n{$indentstring}{$this->indentstring}{$this->data}\n";
+                                                               $result .= 
"{$this->data}";
+                                                               //XXX Caeies : 
OUCH Is see no way to add data INTO the note for indenting ... WTF ?
+                                                               //XXX Yes this 
kill me because I got more than 30 chars in URL for images ... I let you test 
what a long_url_to_img%0A do in that case ...
+                                                               //$result .= 
"\n{$indentstring}{$this->indentstring}{$this->data}\n";
                                                                $endtag_indent 
= $indentstring;
                                                        }
                                                        else






reply via email to

[Prev in Thread] Current Thread [Next in Thread]