pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1480050 - /pdfbox/cmssite/trunk/lib/view.pm
Date Tue, 07 May 2013 19:45:36 GMT
Author: joes
Date: Tue May  7 19:45:35 2013
New Revision: 1480050

URL: http://svn.apache.org/r1480050
Log:
bugfixes to generate site

Modified:
    pdfbox/cmssite/trunk/lib/view.pm

Modified: pdfbox/cmssite/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/lib/view.pm?rev=1480050&r1=1480049&r2=1480050&view=diff
==============================================================================
--- pdfbox/cmssite/trunk/lib/view.pm (original)
+++ pdfbox/cmssite/trunk/lib/view.pm Tue May  7 19:45:35 2013
@@ -100,11 +100,11 @@ sub sitemap {
         for my $hdr (grep /^#/, split "\n", $data{$_}->{content}) {
             $hdr =~ /^(#+)\s+([^#]+)?\s+\1\s+\{#([^}]+)\}$/ or next;
             my $level = length $1;
-        $level *= 4;
-        $content .= " " x $level;
-        $content .= "- [$2]($_#$3)\n";
+            $level *= 4;
+            $content .= " " x $level;
+            $content .= "- [$2]($_#$3)\n";
+        }
     }
-    
     $args{content} = $content;
     # the extra (3rd) return value is for sitemap support
     return Template($template)->render(\%args), html => \%args;



Mime
View raw message