Open pietro909 opened 7 years ago
A similar case is this multi-line attribute:
<div data-responsive="[{
"breakpoint": 1200,
"settings": {
"slidesToShow": 5
}
}]">
</div>
which is translated to this invalid Elm code:
div [ attribute "data-responsive" "[{
"breakpoint": 1200,
"settings": {
"slidesToShow": 5
}
}]" ]
[]
Elm says:
Elm strings like "this" cannot contain newlines.
Hint: For strings that CAN contain newlines, say """this""" for Elm’s multi-line
string syntax. It allows unescaped newlines and double quotes.
Detected errors in 1 module.
If you input:
The result is:
Which is not valid elm code. It should escape the double quotes: