Skip to content

Unwanted changes to in-line Javascript #950

Open
@catharsis71

Description

@catharsis71

Input:

<script>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</script>


<script>
aaaaaaaaaa
bbbbbbbbbb
cccccccccc
dddddddddd
</script>

Output:

<script>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
</script>
<script>

aaaaaaaaaa
bbbbbbbbbb
cccccccccc
dddddddddd
</script>

Two issues here:

  1. The first single-line script is being split out to three lines

  2. The second longer script is getting an ugly blank line inserted at the start

I've looked through the man page but couldn't find a solution. Is there anything that can be done about this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions