davidjamesstone / superviews.js

Template engine targeting incremental-dom
http://davidjamesstone.github.io/superviews.js/playground/
246 stars 15 forks source link

Remove carriage return in interpolate function #40

Open blikblum opened 7 years ago

blikblum commented 7 years ago

Under windows, superviews is creating invalid code for multi line strings.

This is the result of running npm run build:readme:

text("
     \
        My name is " + (data.name) + " my age is " + (data.age) + "
     \
        I live at " + (data.address) + "
     \

     \
        ")

This occurs because carriage return was not being take into account

This PR fixes it