From: Thomas Vander Stichele Date: Mon, 15 Aug 2005 16:50:25 +0000 (+0000) Subject: mangle-tmpl.py: keep original Long_Description; only insert an include if it's not... X-Git-Tag: RELEASE-0_8_11~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ff526a316f9b576e727b8e32cba0a53cdec07a6;p=platform%2Fupstream%2Fgst-common.git mangle-tmpl.py: keep original Long_Description; only insert an include if it's not already the first line in there Original commit message from CVS: * mangle-tmpl.py: keep original Long_Description; only insert an include if it's not already the first line in there * plugins.xsl: output more information for plugins, including an origin hyperlink --- diff --git a/ChangeLog b/ChangeLog index 29b8b92..df51442 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2005-08-15 Thomas Vander Stichele + * mangle-tmpl.py: + keep original Long_Description; only insert an include if it's + not already the first line in there + * plugins.xsl: + output more information for plugins, including an origin hyperlink + +2005-08-15 Thomas Vander Stichele + * gst-xmlinspect.py: a first stab at inspecting plugins and outputting an xml description * gtk-doc-plugins.mak: diff --git a/mangle-tmpl.py b/mangle-tmpl.py index 916f214..4342749 100644 --- a/mangle-tmpl.py +++ b/mangle-tmpl.py @@ -39,6 +39,12 @@ class Tmpl: else: self._sections[id].append(line) + def get_section(self, id): + """ + Get the content from the given section. + """ + return self._sections[id] + def set_section(self, id, content): """ Replace the given section id with the given content. @@ -88,9 +94,14 @@ def main(): feature = elements[element] description = feature.get_description() tmpl.set_section("Short_Description", "%s\n\n" % description) - tmpl.set_section("Long_Description", - '\n\n\n\n') + + # put in an include if not yet there + line = '\n' + section = tmpl.get_section("Long_Description") + if not section[0] == line: + section.insert(0, line) + tmpl.set_section("Long_Description", section) tmpl.write() main() diff --git a/plugins.xsl b/plugins.xsl index bd375dc..bf35d39 100644 --- a/plugins.xsl +++ b/plugins.xsl @@ -85,12 +85,47 @@ Plugin Information + filename + + + version + + + + + + + run-time license + + + + + + + package + + + + + + + origin + + + + + + + + + +