chiark / gitweb /
Wrap maintainer notes in <pre> to keep newlines and formatting
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 24 Mar 2014 14:10:52 +0000 (15:10 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 24 Mar 2014 14:11:05 +0000 (15:11 +0100)
fdroidserver/update.py

index 939af5871281331e80fa8a6055ce2b31d6e9f5d1..e616ed5315789e88a8799a31de67cad0bd355beb 100644 (file)
@@ -104,7 +104,9 @@ def update_wiki(apps, apks):
 
         wikidata += "=Maintainer Notes=\n"
         if 'Maintainer Notes' in app:
-            wikidata += metadata.description_wiki(app['Maintainer Notes']) + "\n"
+            wikidata += "<pre>\n"
+            wikidata += metadata.description_wiki(app['Maintainer Notes'])
+            wikidata += "</pre>"
         wikidata += "\nMetadata: [https://gitorious.org/f-droid/fdroiddata/source/master:metadata/{0}.txt current] [https://gitorious.org/f-droid/fdroiddata/history/metadata/{0}.txt history]\n".format(app['id'])
 
         # Get a list of all packages for this application...