Browse code

add newline at end of json files to make them more suitable for editors who always want a newline at EOF

Hanno Böck authored on 23/05/2022 18:32:02
Showing 17 changed files
... ...
@@ -192,4 +192,4 @@
192 192
       }
193 193
     ]
194 194
   }
195
-]
196 195
\ No newline at end of file
196
+]
... ...
@@ -145,4 +145,4 @@
145 145
       }
146 146
     ]
147 147
   }
148
-]
149 148
\ No newline at end of file
149
+]
... ...
@@ -337,4 +337,4 @@
337 337
       }
338 338
     ]
339 339
   }
340
-]
341 340
\ No newline at end of file
341
+]
... ...
@@ -12,4 +12,4 @@
12 12
       }
13 13
     ]
14 14
   }
15
-]
16 15
\ No newline at end of file
16
+]
... ...
@@ -99,4 +99,4 @@
99 99
       }
100 100
     ]
101 101
   }
102
-]
103 102
\ No newline at end of file
103
+]
... ...
@@ -14,4 +14,4 @@
14 14
       }
15 15
     ]
16 16
   }
17
-]
18 17
\ No newline at end of file
18
+]
... ...
@@ -60,4 +60,4 @@
60 60
       }
61 61
     ]
62 62
   }
63
-]
64 63
\ No newline at end of file
64
+]
... ...
@@ -27,4 +27,4 @@
27 27
       }
28 28
     ]
29 29
   }
30
-]
31 30
\ No newline at end of file
31
+]
... ...
@@ -55,4 +55,4 @@
55 55
       }
56 56
     ]
57 57
   }
58
-]
59 58
\ No newline at end of file
59
+]
... ...
@@ -13,4 +13,4 @@
13 13
       }
14 14
     ]
15 15
   }
16
-]
17 16
\ No newline at end of file
17
+]
... ...
@@ -624,4 +624,4 @@
624 624
       }
625 625
     ]
626 626
   }
627
-]
628 627
\ No newline at end of file
628
+]
... ...
@@ -14,4 +14,4 @@
14 14
       }
15 15
     ]
16 16
   }
17
-]
18 17
\ No newline at end of file
18
+]
... ...
@@ -471,4 +471,4 @@
471 471
       }
472 472
     ]
473 473
   }
474
-]
475 474
\ No newline at end of file
475
+]
... ...
@@ -13,4 +13,4 @@
13 13
       }
14 14
     ]
15 15
   }
16
-]
17 16
\ No newline at end of file
17
+]
... ...
@@ -65,4 +65,4 @@
65 65
       }
66 66
     ]
67 67
   }
68
-]
69 68
\ No newline at end of file
69
+]
... ...
@@ -102,4 +102,4 @@
102 102
       }
103 103
     ]
104 104
   }
105
-]
106 105
\ No newline at end of file
106
+]
... ...
@@ -23,7 +23,7 @@ class TestJsonLint(unittest.TestCase):
23 23
             orig = fp.read()
24 24
             fp.close()
25 25
             tmp = json.loads(orig)
26
-            new = json.dumps(tmp, indent=2)
26
+            new = json.dumps(tmp, indent=2) + "\n"
27 27
             if orig != new:
28 28
                 print(f"json {f} not valid")
29 29
                 sys.stdout.writelines(difflib.unified_diff(orig, new))