[glibmm] gmmproc: Don't make one very long line for the enum documentation
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] gmmproc: Don't make one very long line for the enum documentation
- Date: Fri, 12 Dec 2014 10:01:33 +0000 (UTC)
commit 70977dc8a4b71d27ec8969c3ad1c45c794d43bd0
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Fri Dec 12 10:58:05 2014 +0100
gmmproc: Don't make one very long line for the enum documentation
* tools/pm/DocsParser.pm: lookup_enum_documentation(): Don't replace newlines
by spaces in the description of the enum constants.
tools/pm/DocsParser.pm | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tools/pm/DocsParser.pm b/tools/pm/DocsParser.pm
index 3ffee0e..0e9e66f 100644
--- a/tools/pm/DocsParser.pm
+++ b/tools/pm/DocsParser.pm
@@ -285,11 +285,11 @@ sub lookup_enum_documentation($$$$)
$param =~ s/([a-zA-Z0-9]*(_[a-zA-Z0-9]+)*)_?/$1/g;
if(length($desc) > 0)
{
- $desc =~ s/\n/ /g;
- $desc =~ s/ $//;
- $desc =~ s/^\s+//; # Chop off leading whitespace
+ # Chop off leading and trailing whitespace.
+ $desc =~ s/^\s+//;
+ $desc =~ s/\s+$//;
$desc .= '.' unless($desc =~ /(?:^|\.)$/);
- $docs .= "\ var $cpp_enum_name ${param}\n \u${desc}\n\n"; # \u = Convert next char to uppercase
+ $docs .= "\ var $cpp_enum_name ${param}\n\u${desc}\n\n"; # \u = Convert next char to uppercase
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]