[SCM] Debian Live manual branch, master, updated. 20090201-1-3-g3229c25

Daniel Baumann daniel at debian.org
Sat Feb 7 08:36:42 UTC 2009


The following commit has been merged in the master branch:
commit 3229c2556c6c2eb97b90e6f488022dac7f14f0f1
Author: Daniel Baumann <daniel at debian.org>
Date:   Sat Feb 7 09:36:36 2009 +0100

    Correcting indenting of examples in code style chapter.

diff --git a/xml/chapters/coding-style.xml b/xml/chapters/coding-style.xml
index 3e4c4de..7c3e6e0 100644
--- a/xml/chapters/coding-style.xml
+++ b/xml/chapters/coding-style.xml
@@ -35,7 +35,7 @@
 
 	<listitem>Use the linux like line breaks:
 
-	Bad:
+	<para>Bad:
 
 <screen>
 if foo; then
@@ -43,7 +43,8 @@ if foo; then
 fi
 </screen>
 
-	Good:
+	</para>
+	<para>Good:
 
 <screen>
 if foo
@@ -51,20 +52,19 @@ then
 	bar
 fi
 </screen>
-
-	</listitem>
+	</para></listitem>
 
 	<listitem>Same for functions:
 
-	Bad:
+	<para>Bad:
 
 <screen>
 foo () {
 	bar
 }
 </screen>
-
-	Good:
+	</para>
+	<para>Good:
 
 <screen>
 foo ()
@@ -72,8 +72,7 @@ foo ()
 	bar
 }
 </screen>
-
-	</listitem>
+	</para></listitem>
 </itemizedlist>
 
 </sect1>
@@ -90,22 +89,23 @@ foo ()
 	<listitem>Always protect variables wrt/ potential whitespaces, write "${FOO}" not ${FOO}.</listitem>
 	<listitem>For consistency reasons, always use quotes when assigning values to variables:
 
-	Bad:
+	<para>Bad:
 
 <screen>
 FOO=bar
 </screen>
-
-	Good:
+	</para>
+	<para>Good:
 
 <screen>
 FOO="bar"
 </screen>
-	</listitem>
+
+	</para></listitem>
 
 	<listitem>If multiple variables are used, quote the full expression:
 
-	Bad:
+	<para>Bad:
 
 <screen>
 if [ -f "${FOO}"/foo/"${BAR}"/bar ]
@@ -113,8 +113,8 @@ then
 	foobar
 fi
 </screen>
-
-	Good:
+	</para>
+	<para>Good:
 
 <screen>
 if [ -f "${FOO}/foo/${BAR}/bar" ]
@@ -122,8 +122,7 @@ then
 	foobar
 fi
 </screen>
-
-	</listitem>
+	</para></listitem>
 </itemizedlist>
 
 </sect1>

-- 
Debian Live manual



More information about the debian-live-changes mailing list