[libvirt] [PATCH 07/24] drvesx.html.in: Kill useless spaces in <pre/>

Michal Privoznik mprivozn at redhat.com
Mon Nov 14 09:33:53 UTC 2016


The <pre/> section is rendered as-is on the page. That is, if all
the lines are prefixed with 4 spaces the rendered page will also
have them. Problem is if we put a box around such <pre/> because
the content might not fix into it.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 docs/drvesx.html.in | 44 ++++++++++++++++++++++----------------------
 1 file changed, 22 insertions(+), 22 deletions(-)

diff --git a/docs/drvesx.html.in b/docs/drvesx.html.in
index d1e67d0..5ba7bc1 100644
--- a/docs/drvesx.html.in
+++ b/docs/drvesx.html.in
@@ -467,14 +467,14 @@ ethernet0.checkMACAddress = "false"
         Here a domain XML snippet:
     </p>
 <pre>
-    ...
-    <disk type='file' device='disk'>
-      <source file='[local-storage] Fedora11/Fedora11.vmdk'/>
-      <target dev='sda' bus='scsi'/>
-      <address type='drive' controller='0' bus='0' unit='0'/>
-    </disk>
-    <controller type='scsi' index='0' model='<strong>lsilogic</strong>'/>
-    ...
+...
+<disk type='file' device='disk'>
+  <source file='[local-storage] Fedora11/Fedora11.vmdk'/>
+  <target dev='sda' bus='scsi'/>
+  <address type='drive' controller='0' bus='0' unit='0'/>
+</disk>
+<controller type='scsi' index='0' model='<strong>lsilogic</strong>'/>
+...
 </pre>
     <p>
         The controller element is supported <span class="since">since 0.8.2</span>.
@@ -482,13 +482,13 @@ ethernet0.checkMACAddress = "false"
         specify the SCSI controller model. This attribute usage is deprecated now.
     </p>
 <pre>
-    ...
-    <disk type='file' device='disk'>
-      <driver name='<strong>lsilogic</strong>'/>
-      <source file='[local-storage] Fedora11/Fedora11.vmdk'/>
-      <target dev='sda' bus='scsi'/>
-    </disk>
-    ...
+...
+<disk type='file' device='disk'>
+  <driver name='<strong>lsilogic</strong>'/>
+  <source file='[local-storage] Fedora11/Fedora11.vmdk'/>
+  <target dev='sda' bus='scsi'/>
+</disk>
+...
 </pre>
 
 
@@ -513,13 +513,13 @@ ethernet0.checkMACAddress = "false"
         Here a domain XML snippet:
     </p>
 <pre>
-    ...
-    <interface type='bridge'>
-      <mac address='00:50:56:25:48:c7'/>
-      <source bridge='VM Network'/>
-      <model type='<strong>e1000</strong>'/>
-    </interface>
-    ...
+...
+<interface type='bridge'>
+  <mac address='00:50:56:25:48:c7'/>
+  <source bridge='VM Network'/>
+  <model type='<strong>e1000</strong>'/>
+</interface>
+...
 </pre>
 
 
-- 
2.8.4




More information about the libvir-list mailing list