gql-dart / gql

Libraries supporting GraphQL in Dart
MIT License
267 stars 121 forks source link

Fixed visitStringValueNode for string blocks #454

Open sh1l0n opened 5 months ago

sh1l0n commented 5 months ago

Fix: https://github.com/gql-dart/gql/issues/453

Before

"Lore ipsum
One
Two"

After:

"Lore ipsum\nOne\nTwo"
knaeckeKami commented 5 months ago

Please fix the linting errors

Also, please add tests that call printNode(parseString("....") on blocks, non-blocks mit multiline strings. I think the escape logic is now wrong, since you escape block strings which should not be escaped.