[gtk-doc] scan: replace newlines with a blank when joining lines



commit ed008315e4529c83a9a9e8a14903c869d687534a
Author: Stefan Kost <ensonic users sf net>
Date:   Wed Nov 25 14:12:29 2009 +0200

    scan: replace newlines with a blank when joining lines
    
    This fixes "int\narg" becomming "intarg".

 gtkdoc-scan.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in
index 2160b35..0a210fd 100755
--- a/gtkdoc-scan.in
+++ b/gtkdoc-scan.in
@@ -608,7 +608,7 @@ sub ScanHeader {
 		$decl =~ s%/\*.*?\*/%%gs;	# remove comments.
 		#$decl =~ s/^\s+//;		# remove leading whitespace.
 		#$decl =~ s/\s+$//;		# remove trailing whitespace.
-		$decl =~ s/\s*\n\s*//g;		# remove whitespace at start
+		$decl =~ s/\s*\n\s*/ /gs;		# consolidate whitespace at start
 						# and end of lines.
 		$ret_type =~ s%/\*.*?\*/%%g;	# remove comments in ret type.
 		&AddSymbolToList (\$list, $symbol);



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