]> thyrsus.com Git - freecode-submit.git/commitdiff
Map - in submit headers to space in URL keys.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 20 Oct 2010 12:02:31 +0000 (08:02 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 20 Oct 2010 12:02:31 +0000 (08:02 -0400)
freshmeat-submit

index 91c8d531f7adb942b8ae47d5e6d914f8314422ae..0ce240c5c75bd5768b7ca4cbd1ed99ea89b6cd32 100755 (executable)
@@ -236,6 +236,7 @@ class FreshmeatMetadataFactory:
             for (key, value) in message.items():
                 value = re.sub("\n +", " ", value).strip()
                 if key.endswith("-URL"):
+                    key = key.replace("-", " ")
                     urls.update({key[:-4] : value})
                 else:
                     if key.endswith("List"):