From 20bd747635436510eed119c05fb61b5f9410ef90 Mon Sep 17 00:00:00 2001
From: Dominik Riebeling <Dominik.Riebeling@gmail.com>
Date: Wed, 2 Feb 2011 18:56:28 +0000
Subject: Fix some unwanted empty lines in the manual.

Inside a code environment lines opted out will remain as empty lines.
Use a feature of fancyvrb to only show one specific line from the code
block to avoid this.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29194 a1c6a512-1295-4272-9138-f99709370657
---
 manual/getting_started/sansaAMS_install.tex | 42 ++++++++++++++++++-----------
 1 file changed, 26 insertions(+), 16 deletions(-)

(limited to 'manual/getting_started/sansaAMS_install.tex')

diff --git a/manual/getting_started/sansaAMS_install.tex b/manual/getting_started/sansaAMS_install.tex
index 02505b7df5..7ceb7d3d30 100644
--- a/manual/getting_started/sansaAMS_install.tex
+++ b/manual/getting_started/sansaAMS_install.tex
@@ -41,14 +41,20 @@ files:
 \item Run mkamsboot.exe, passing the name of the OF and bootloader files that
   you downloaded, in addition to a name for the output file.
 
-  \begin{code} 
-    \opt{fuze}{mkamsboot.exe fuzea.bin bootloader-fuze.sansa patched.bin}
-    \opt{fuzev2}{mkamsboot.exe fuzpa.bin bootloader-fuzev2.sansa patched.bin}
-    \opt{e200v2}{mkamsboot.exe e200pe.bin bootloader-e200v2.sansa patched.bin}
-    \opt{clipv1}{mkamsboot.exe m300a.bin bootloader-clip.sansa patched.bin}
-    \opt{clipv2}{mkamsboot.exe m30pa.bin bootloader-clipv2.sansa patched.bin}
-    \opt{clipplus}{mkamsboot.exe clppa.bin bootloader-clipplus.sansa patched.bin}
-    \opt{c200v2}{mkamsboot.exe c200pa.bin bootloader-c200v2.sansa patched.bin}
+  % The following arguments to the code environment select the correct line out
+  % of the code block. This is necessary as using \opt{} in the code block would
+  % create unwanted empty lines.
+  \begin{code}[firstline=\opt{fuze}{1}\opt{fuzev2}{2}\opt{e200v2}{3}%
+            \opt{clipv1}{4}\opt{clipv2}{5}\opt{clipplus}{6}\opt{c200v2}{7},%
+               lastline=\opt{fuze}{1}\opt{fuzev2}{2}\opt{e200v2}{3}%
+            \opt{clipv1}{4}\opt{clipv2}{5}\opt{clipplus}{6}\opt{c200v2}{7}]
+    mkamsboot.exe fuzea.bin bootloader-fuze.sansa patched.bin
+    mkamsboot.exe fuzpa.bin bootloader-fuzev2.sansa patched.bin
+    mkamsboot.exe e200pe.bin bootloader-e200v2.sansa patched.bin
+    mkamsboot.exe m300a.bin bootloader-clip.sansa patched.bin
+    mkamsboot.exe m30pa.bin bootloader-clipv2.sansa patched.bin
+    mkamsboot.exe clppa.bin bootloader-clipplus.sansa patched.bin
+    mkamsboot.exe c200pa.bin bootloader-c200v2.sansa patched.bin
   \end{code}
  
   If mkamsboot.exe does not report success, then retry or abort.
@@ -75,14 +81,18 @@ files:
 \item Run mkamsboot, passing the name of the OF and bootloader files that
   you downloaded, in addition to a name for the output file.
 
-  \begin{code} 
-    \opt{fuze}{./mkamsboot fuzea.bin bootloader-fuze.sansa patched.bin}
-    \opt{fuzev2}{./mkamsboot fuzpa.bin bootloader-fuzev2.sansa patched.bin}
-    \opt{e200v2}{./mkamsboot e200pe.bin bootloader-e200v2.sansa patched.bin}
-    \opt{clipv1}{./mkamsboot m300a.bin bootloader-clip.sansa patched.bin}
-    \opt{clipv2}{./mkamsboot m30pa.bin bootloader-clipv2.sansa patched.bin}
-    \opt{clipplus}{./mkamsboot clppa.bin bootloader-clipplus.sansa patched.bin}
-    \opt{c200v2}{./mkamsboot c200pa.bin bootloader-c200v2.sansa patched.bin}
+% See above for the code environment arguments explanation.
+  \begin{code}[firstline=\opt{fuze}{1}\opt{fuzev2}{2}\opt{e200v2}{3}%
+            \opt{clipv1}{4}\opt{clipv2}{5}\opt{clipplus}{6}\opt{c200v2}{7},%
+               lastline=\opt{fuze}{1}\opt{fuzev2}{2}\opt{e200v2}{3}%
+            \opt{clipv1}{4}\opt{clipv2}{5}\opt{clipplus}{6}\opt{c200v2}{7}]
+    ./mkamsboot fuzea.bin bootloader-fuze.sansa patched.bin
+    ./mkamsboot fuzpa.bin bootloader-fuzev2.sansa patched.bin
+    ./mkamsboot e200pe.bin bootloader-e200v2.sansa patched.bin
+    ./mkamsboot m300a.bin bootloader-clip.sansa patched.bin
+    ./mkamsboot m30pa.bin bootloader-clipv2.sansa patched.bin
+    ./mkamsboot clppa.bin bootloader-clipplus.sansa patched.bin
+    ./mkamsboot c200pa.bin bootloader-c200v2.sansa patched.bin
   \end{code}
  
   If mkamsboot does not report success, then retry or abort.
-- 
cgit v1.2.3

