Announcement

Collapse
No announcement yet.

Bug / Warning. JavaScript strings containing \r\n getting munged in Snapshots.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bug / Warning. JavaScript strings containing \r\n getting munged in Snapshots.

    Using 10.0.4. JavaScript like this:
    Code:
    <script type="text/javascript">
     var letActinicMungeMe = "\r\nHello world\r\n";
    </script>
    Will end up like:
    Code:
    <script type="text/javascript">
     var letActinicMungeMe = "
    Hello world
    ";
    </script>
    After being exported / imported via a Partial Site Design Snapshot (and probably full Snapshot too).

    Workaround by using code like:
    Code:
    <script type="text/javascript">
     var letActinicMungeMe = "\x0D\x0AHello world\x0D\x0A";
    </script>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey
Working...
X