Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
forena
Commits
527edd44
Commit
527edd44
authored
Jun 02, 2014
by
David Metzler
Browse files
#238193
Whitespace stripping from XML reports
parent
6d9677a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
renderers/FrxRenderer.inc
View file @
527edd44
...
...
@@ -81,7 +81,12 @@ class FrxRenderer {
if
(
$node_type
==
XML_TEXT_NODE
||
$node_type
==
XML_ENTITY_REF_NODE
||
$node_type
==
XML_ENTITY_NODE
)
{
$text
=
$dom_node
->
textContent
;
$o
.
=
$this
->
teng
->
replace
(
htmlspecialchars
(
$text
));
if
(
!
empty
(
$settings
[
'stripWhiteSpace'
]))
{
$o
.
=
trim
(
$this
->
teng
->
replace
(
htmlspecialchars
(
$text
)));
}
else
{
$o
.
=
$this
->
teng
->
replace
(
htmlspecialchars
(
$text
));
}
return
;
}
...
...
@@ -260,7 +265,12 @@ class FrxRenderer {
$co
=
Frx
::
Controls
(
$renderer
);
if
(
$co
)
{
$co
->
initReportNode
(
$dom_node
,
$this
->
frxReport
);
$o
.
=
$co
->
render
();
if
(
!
empty
(
$settings
[
'stripWhiteSpace'
]))
{
$o
.
=
trim
(
$co
->
render
());
}
else
{
$o
.
=
$co
->
render
();
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment