Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=5ff974d46bf3aff0225801019c2203e75015fb6d

commit 5ff974d46bf3aff0225801019c2203e75015fb6d
Author: James Buren <[email protected]>
Date:   Thu Mar 8 20:02:56 2012 -0600

add indentation to output

diff --git a/NEWS b/NEWS
index cc8be37..51b61fc 100644
--- a/NEWS
+++ b/NEWS
@@ -78,33 +78,33 @@ output()
;;
esac

-       printf "The Frugalware Developer Team is pleased to <a 
href="/news/$2">announce</a> the immediate availability of Frugalware 
$_current, $_addendum</p>\n"
-       printf "<p>Here are some of the major improvements, fixes and updates 
since $_previous:<br/>\n"
-       printf "<ul>\n"
+       printf "%6cThe Frugalware Developer Team is pleased to <a 
href="/news/$2">announce</a> the immediate availability of Frugalware 
$_current, $_addendum</p>\n" ' '
+       printf "%4c<p>Here are some of the major improvements, fixes and 
updates since $_previous:<br/>\n" ' '
+       printf "%6c<ul>\n" ' '
for _i in `seq 0 ${#_news[@]}`; do
_entry="${_news[$_i]}"
if echo $_entry | grep -q ':$'; then
if [ "$_in_group" -eq 0 ]; then
_in_group=1
-                               printf "<li>$_entry\n"
-                               printf "<ul>\n"
+                               printf "%8c<li>$_entry\n" ' '
+                               printf "%10c<ul>\n" ' '
else
-                               printf "</ul>\n"
-                               printf "</li>\n"
-                               printf "<li>$_entry\n"
-                               printf "<ul>\n"
+                               printf "%10c</ul>\n" ' '
+                               printf "%8c</li>\n" ' '
+                               printf "%8c<li>$_entry\n" ' '
+                               printf "%10c<ul>\n" ' '
fi
elif [ -z "$_entry" ]; then
-                       printf "</ul>\n"
-                       printf "</li>\n"
+                       printf "%10c</ul>\n" ' '
+                       printf "%8c</li>\n" ' '
else
-                       printf "<li>$_entry</li>\n"
+                       printf "%12c<li>$_entry</li>\n" ' '
fi
done
-       printf "</ul>\n"
-       printf "Please refer to the Frugalware <a 
href="http://ftp.frugalware.org/pub/frugalware/frugalware-testing/ChangeLog.txt";>Testing
 ChangeLog</a> for more information.<br/>\n"
-       printf "Download for i686: See our <a 
href="http://frugalware.org/download/frugalware-testing-iso";>mirror list</a>. 
Don't forget to check the <a 
href="http://frugalware.org/download/frugalware-testing-iso/SHA1SUMS";>integrity</a>
 of the install images before burning!<br/>\n"
-       printf "<b>NOTE</b>: Click <a 
href="/docs/install#_choosing_installation_flavor">here</a> to read more about 
what media you need for the installation.<br/>\n"
+       printf "%6c</ul>\n" ' '
+       printf "%6cPlease refer to the Frugalware <a 
href="http://ftp.frugalware.org/pub/frugalware/frugalware-testing/ChangeLog.txt";>Testing
 ChangeLog</a> for more information.<br/>\n" ' '
+       printf "%6cDownload for i686: See our <a 
href="http://frugalware.org/download/frugalware-testing-iso";>mirror list</a>. 
Don't forget to check the <a 
href="http://frugalware.org/download/frugalware-testing-iso/SHA1SUMS";>integrity</a>
 of the install images before burning!<br/>\n" ' '
+       printf "%6c<b>NOTE</b>: Click <a 
href="/docs/install#_choosing_installation_flavor">here</a> to read more about 
what media you need for the installation.<br/>\n" ' '
}

output pre1 21
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to