Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Fix bug when $indent have some string
Browse files Browse the repository at this point in the history
assuming $ident = '¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨';
before:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨<script type="text/javascript">
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨    //<!--
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨    Some script here...¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
    //-->
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨</script>

now:
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨<script type="text/javascript">
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨    //<!--
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨    Some script here...
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨    //-->
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨</script>
  • Loading branch information
wryck7 committed Jan 30, 2013
1 parent 86c8924 commit 57f8632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/View/Helper/HeadScript.php
Expand Up @@ -422,7 +422,7 @@ public function itemToString($item, $indent, $escapeStart, $escapeEnd)
$html .= $indent . ' ' . $item->source;

if ($addScriptEscape) {
$html .= $indent . PHP_EOL . ' ' . $escapeEnd;
$html .= PHP_EOL . $indent . ' ' . $escapeEnd;
}

$html .= PHP_EOL . $indent;
Expand Down

0 comments on commit 57f8632

Please sign in to comment.