summaryrefslogtreecommitdiff
path: root/src/HTML5/Serializer
diff options
context:
space:
mode:
authorMatt Butcher <[email protected]>2013-09-15 13:20:58 -0600
committerMatt Butcher <[email protected]>2013-09-15 13:20:58 -0600
commit68d3721e47ced10bdc06adf0da7687e4e166f17f (patch)
tree9564a7ee936b7fba77824fc8822121cd44325d81 /src/HTML5/Serializer
parent587b70c48bf11e2ca6dd60a1106b9fe079c4cc0f (diff)
For #16, removed extra wr(' ') from PI serializer.
This caused a trailing whitespace after the PI contents and before the PI closing tag.
Diffstat (limited to 'src/HTML5/Serializer')
-rw-r--r--src/HTML5/Serializer/OutputRules.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HTML5/Serializer/OutputRules.php b/src/HTML5/Serializer/OutputRules.php
index a37fdd3..0ee1e11 100644
--- a/src/HTML5/Serializer/OutputRules.php
+++ b/src/HTML5/Serializer/OutputRules.php
@@ -109,7 +109,7 @@ class OutputRules implements \HTML5\Serializer\RulesInterface {
}
public function processorInstruction($ele) {
- $this->wr('<?')->wr($ele->target)->wr(' ')->wr($ele->data)->wr(' ?>');
+ $this->wr('<?')->wr($ele->target)->wr($ele->data)->wr(' ?>');
}
/**
@@ -254,4 +254,4 @@ class OutputRules implements \HTML5\Serializer\RulesInterface {
return $ret;
}
-} \ No newline at end of file
+}