[gtk-doc] Fix off by one on function indentation



commit 94629fa5e74e5481f9ea5e2c71e8c0e18e5bcf42
Author: William Jon McCann <william jon mccann gmail com>
Date:   Wed Feb 12 19:59:36 2014 -0500

    Fix off by one on function indentation

 gtkdoc-mkdb.in |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 749b8f9..95f4fcd 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -2152,7 +2152,7 @@ sub OutputFunction {
     $ret_type_output = "$start$type_modifier$xref$pointer\n";
 
     my $indent_len;
-    $indent_len += length ($symbol);
+    $indent_len = length ($symbol) + 2;
     my $char1 = my $char2 = my $char3 = "";
     if ($symbol_type eq 'USER_FUNCTION') {
         $indent_len += 3;
@@ -2168,9 +2168,8 @@ sub OutputFunction {
     } else {
         $indent_len = $MAX_SYMBOL_FIELD_WIDTH - 8;
         $symbol_desc_output = "$char1$char2$symbol$char3\n"
-          . (' ' x $indent_len);
+          . (' ' x ($indent_len - 1));
     }
-    $indent_len++;
 
     my $synop = "<row><entry role=\"function_type\">${ret_type_output}</entry><entry 
role=\"function_name\">${symbol_output}&#160;<phrase role=\"c_punctuation\">()</phrase></entry></row>\n";
 


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