[gnumeric] news-to-html: fix indentation.



commit 824d8e0cb5ceb77d2e2b6f80e2d3dc0ea41060a9
Author: Morten Welinder <terra gnome org>
Date:   Fri May 2 18:55:36 2014 -0400

    news-to-html: fix indentation.

 tools/news-to-html |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/tools/news-to-html b/tools/news-to-html
index d803a12..faacd52 100644
--- a/tools/news-to-html
+++ b/tools/news-to-html
@@ -49,7 +49,7 @@ while (<FIL>) {
 
        if (s/^\s+\*\s*//) {
            &finish_item () if $have_item;
-           $item .= "      <li>";
+           $item .= "\t    <li>";
            &add_to_item ($_);
            next;
        }
@@ -77,11 +77,11 @@ close (FIL);
 sub finish_author {
     &finish_item () if $have_item;
 
-    print "  <li>$who\n";
-    print "    <ul>\n";
+    print "        <li>$who\n";
+    print "          <ul>\n";
     print $item;
-    print "    </ul>\n";
-    print "  </li>\n";
+    print "          </ul>\n";
+    print "        </li>\n";
     $item = '';
     $who = undef;
 }
@@ -95,7 +95,7 @@ sub finish_item {
        $bug = '';
     }
     $item =~ s/\s+$//;
-    $item .= "\n      </li>\n";
+    $item .= "\n\t    </li>\n";
     $have_item = 0;
 }
 
@@ -106,7 +106,7 @@ sub add_to_item {
     $txt =~ s{Redhat\s+\#(\d\d\d\d\d+)}{Redhat <a href=\"$redhat_bug_prefix$1\"\>Bug $1</a>}g;
     $txt =~ s{\#(\d\d\d\d\d+)}{<a href=\"$bug_prefix$1\"\>Bug $1</a>}g;
 
-    $item .= "\n\t$txt";
+    $item .= "\n\t      $txt";
     $have_item = 1;
 }
 
@@ -145,15 +145,15 @@ sub prolog {
       <div class="generalitem">
 PROLOG
 ;
-    print "  <h2><span class=\"gnumeric-bullet\">$module $version aka &quot;TBD&quot; is now 
available.</h2>\n";
-    print "  <p>The Gnumeric Team is pleased to announce the availability of\n";
-    print "  $module version $version.</p>\n";
-    print "  <p>Noteworthy news in this release:</p>\n";
-    print "  <ul>\n";
-    print "  <li>...</li>\n";
-    print "  </ul>\n\n";
-    print "  <p>Details of changes by contributor:</p>\n";
-    print "  <ul>\n";
+    print "        <h2><span class=\"gnumeric-bullet\">$module $version aka &quot;TBD&quot; is now 
available.</h2>\n";
+    print "        <p>The Gnumeric Team is pleased to announce the availability of\n";
+    print "        $module version $version.</p>\n";
+    print "        <p>Noteworthy news in this release:</p>\n";
+    print "        <ul>\n";
+    print "        <li>...</li>\n";
+    print "        </ul>\n\n";
+    print "        <p>Details of changes by contributor:</p>\n";
+    print "        <ul>\n";
 }
 
 # -----------------------------------------------------------------------------
@@ -161,14 +161,14 @@ PROLOG
 sub epilog {
     my $link = "http://ftp.gnome.org/pub/GNOME/sources/"; . lc $module . "/$version2/";
 
-    print "  </ul>\n";
+    print "        </ul>\n";
 
     print "      </div>\n";
     print "      <div class=\"generalitem\">\n";
     print "        <h2><span class=\"gnumeric-bullet\"></span>Availability</h2>\n";
-    print "  <blockquote>\n";
-    print "    <p><a href=\"$link\">$link</a></p>\n";
-    print "  </blockquote>\n";
+    print "        <blockquote>\n";
+    print "          <p><a href=\"$link\">$link</a></p>\n";
+    print "        </blockquote>\n";
     print "      </div>\n";
     print "    </div>\n";
     print "    <!-- MARKER: end-main -->\n";


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