Reply To: Request: Make assets easier to diff in source code form

FlowCanvas Forums Support Request: Make assets easier to diff in source code form Reply To: Request: Make assets easier to diff in source code form

#1528
kalms
Participant

I looked into this a little bit myself. It was quick to change all places which call Graph.Serialize() to always ask for JSON pretty-printed formatting at serialization time. That didn’t help a lot though; Unity encodes the pretty-printed multiline string as a long single-line “line1\r\nline2\r\nline3\r\n…” type string, and I see no way to convince Unity to split a string across multiple lines in the .asset file. Without the newlines in the .asset file, the pretty-printed JSON is not very helpful for diffing.