[gimp-web/testing] Get the json quotes right



commit 8d81f67a282c02b3ea35a26dd4965cdbf4be4a5b
Author: Michael Schumacher <schumaml gmx de>
Date:   Tue Feb 24 01:23:00 2015 +0100

    Get the json quotes right

 programmatic/downloads/mirrorfmt.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/programmatic/downloads/mirrorfmt.py b/programmatic/downloads/mirrorfmt.py
index 37f54b1..ea6fb9e 100644
--- a/programmatic/downloads/mirrorfmt.py
+++ b/programmatic/downloads/mirrorfmt.py
@@ -32,11 +32,11 @@ def do_file(filename):
                     print xhtml.dd(xhtml.hyperlink(l[0:idx], {"href" : l[0:idx]})
                                    + l[idx:len(l)])
                     if l.startswith("http"):
-                        print >>fj, l[0:idx] + ",\n"
+                        print >>fj, '"' + l[0:idx] + '",'
                 else:
                     print xhtml.dd(xhtml.hyperlink(l, {"href" : l}))
                     if l.startswith("http"):
-                        print >>fj, l[0:idx] + ",\n"
+                        print >>fj, '"' + l[0:idx] + '",'
                 pass
             pass
         pass


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]