Skip to content

Commit

Permalink
Allow newline-strings again
Browse files Browse the repository at this point in the history
  • Loading branch information
blinry committed Sep 19, 2013
1 parent aa4355f commit 4e2fa6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ Nutshdefault:
{ NutshVAL.node = node("or", NutshS[Nutshpt-2].node, NutshS[Nutshpt-0].node) }
case 39:
//line parser.l:103
{ s, _ := strconv.Unquote(NutshS[Nutshpt-0].val); NutshVAL.node = node("string", node(s)) }
{ s := strings.Replace(NutshS[Nutshpt-0].val, "\n", " ", -1); s, _ = strconv.Unquote(s); NutshVAL.node = node("string", node(s)) }
}
goto Nutshstack /* stack new state and value */
}

0 comments on commit 4e2fa6b

Please sign in to comment.