Fixed breakline to script with content

it was printing:
    <script type="text/javascrit">
        some content...</script>

now it is printing:
    <script type="text/javascrit">
        some content...
    </script>

this does not affect when there is no content, it still prints:
    <script type="text/javascrit"></script>