gtk-doc r589 - in trunk: . tools



Author: stefkost
Date: Sun Jun 22 16:14:20 2008
New Revision: 589
URL: http://svn.gnome.org/viewvc/gtk-doc?rev=589&view=rev

Log:
	* tools/migratetmpl.pl:
	  We were still removing too many <para>s.
	  Also add andrews trick to escape the c comments.
	  Add a newline to empty param docs.



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

Modified: trunk/tools/migratetmpl.pl
==============================================================================
--- trunk/tools/migratetmpl.pl	(original)
+++ trunk/tools/migratetmpl.pl	Sun Jun 22 16:14:20 2008
@@ -433,9 +433,9 @@
     
     $ostr="";
     for $line (split (/\n/, $istr)) {
-        if ($line =~ m/<para>\s*$/) {
+        if ($line =~ m/\s*<para>\s*$/) {
             next;
-        } elsif ($line =~ m/<\/para>\s*$/) {
+        } elsif ($line =~ m/\s*<\/para>\s*$/) {
             $ostr.="\n";
         } else {
             # convert character entities back.
@@ -465,6 +465,8 @@
             $line =~ s#/\*#//#;
             $line =~ s#\s*\*/##;
         }
+        $line =~ s#/\*#/<!---->\*#;
+        $line =~ s#\*/#\*<!---->/#;
         $ostr.="$line\n";
     }
     
@@ -491,6 +493,9 @@
             }
         }
     }
+    if ($ostr eq "") {
+        $ostr="\n";
+    }
 
     return $ostr;
 }



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