nitcatalog: implements `package.more_contributors` per specification
authorJean Privat <jean@pryen.org>
Sat, 7 Nov 2015 01:28:21 +0000 (20:28 -0500)
committerJean Privat <jean@pryen.org>
Sat, 7 Nov 2015 01:28:21 +0000 (20:28 -0500)
I tough I did it, but it seems that no.

Signed-off-by: Jean Privat <jean@pryen.org>

src/nitcatalog.nit

index 21847ee..33d1871 100644 (file)
@@ -447,6 +447,12 @@ class Catalog
                end
 
                var contributors = mpackage.contributors
+               var more_contributors = mpackage.metadata("package.more_contributors")
+               if more_contributors != null then
+                       for c in more_contributors.split(",") do
+                               contributors.add c.trim
+                       end
+               end
                if not contributors.is_empty then
                        res.add "<h3>Contributors</h3>\n<ul class=\"box\">"
                        for c in contributors do