Replies: 2 comments 2 replies
-
Why do you think it should not maintain the original line breaks? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks for the report. It's fixed by cf1f0c1 🔒 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks a lot for creating and maintaining this tool, I found it super useful! 🙏
There is a potential issue I encountered recently around the fields comments:
Multi-line comments should be concatenated with a space
Should replace multiple consecutive empty lines with
\n
(simular behavior in markdown)Invalid code will be generated when the comment contains newline character
\n
These are the current behavior: (left: prisma schema, right: the generated code)
/// blah "\n" blah
=>description: "blah \"\\", blah, ":
(cause the whole file to be invalid)/// blah "\r\n" blah
=>description: "blah \"\\\" blah"
/// blah "\\n" blah
=>description: "blah \"\\\" blah"
Created this discussion as I am not sure if these are expected behavior or bugs, and some of them are suggested improvements. Thanks in advance for the help! 🙏
Beta Was this translation helpful? Give feedback.
All reactions