gtk-doc r584 - in trunk: . tools



Author: stefkost
Date: Sat Jun 21 15:12:41 2008
New Revision: 584
URL: http://svn.gnome.org/viewvc/gtk-doc?rev=584&view=rev

Log:
	* tools/migratetmpl.pl:
	  Use $file in section comment not title. Convert only standalone para
	  tags.



Modified:
   trunk/ChangeLog
   trunk/tools/migratetmpl.pl

Modified: trunk/tools/migratetmpl.pl
==============================================================================
--- trunk/tools/migratetmpl.pl	(original)
+++ trunk/tools/migratetmpl.pl	Sat Jun 21 15:12:41 2008
@@ -298,7 +298,7 @@
 
     print (OUTPUT <<EOF);
 /**
- * SECTION:$title
+ * SECTION:$file
 EOF
     if (defined($short_desc) && ($short_desc ne "")) {
         print (OUTPUT " * \ Short_description: $short_desc\n");
@@ -439,10 +439,11 @@
     my ($istr) = @_;
     my ($line,$ostr);
     
+    $ostr="";
     for $line (split (/\n/, $istr)) {
-        if ($line =~ m/<para>/) {
+        if ($line =~ m/<para>\s*$/) {
             next;
-        } elsif ($line =~ m/<\/para>/) {
+        } elsif ($line =~ m/<\/para>\s*$/) {
             $ostr.="\n";
         } else {
             $ostr.="$line\n";
@@ -461,6 +462,7 @@
     my ($istr) = @_;
     my ($line,$ostr);
     
+    $ostr="";
     for $line (split (/\n/, $istr)) {
         if ($line =~ m#/\*.*\*/#) {
             $line =~ s#/\*#//#;



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