< Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost the solution in case you'd like to "Accept " the answer>
Issue:
Issue with change in the JSON representation of Synapse Notebooks in git.
Linebreaks within a code cell of a notebook used to be represented by "\r\n
". When committing a Notebook recently, linebreaks are represented by "\n
".
Solution:
- Impact: The issue messes up customer code reviews, as all the affected lines are always displayed as being changed by the PR.
- Notebook ending line changed from \r\n to \n after doing any change on existing notebook and commit.
- It's due a bug and the fix has been deployed to PROD.
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.