[gtk-doc] Don't truncate annotated param descriptions at newline. Fixes #613611



commit 41c7643d636fd26c049e7da990ea43ac32ba1d34
Author: Simon McVittie <simon mcvittie collabora co uk>
Date:   Mon Mar 22 17:07:46 2010 +0000

    Don't truncate annotated param descriptions at newline. Fixes #613611
    
    Without the s modifier in m//s, (.*) can only capture non-newlines.

 gtkdoc-mkdb.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 0873246..d8ef68f 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -2625,7 +2625,7 @@ sub ExpandAnnotation {
             }
         }
         chomp($param_desc);
-        $param_desc =~ m/^(.*)\.*\s*$/;
+        $param_desc =~ m/^(.*)\.*\s*$/s;
         $param_desc = "$1. ";
     }    
     return ($param_desc, $param_annotations);



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