[libvirt] [PATCH 2/5] rng: Fix formatting

Michal Privoznik mprivozn at redhat.com
Tue Sep 12 09:32:50 UTC 2017


Some elements are offset just one space compared to their parent,
some are misaligned completely, and so on.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 docs/schemas/capability.rng   | 28 +++++++++---------
 docs/schemas/domaincommon.rng | 66 +++++++++++++++++++++----------------------
 docs/schemas/network.rng      |  2 +-
 docs/schemas/nodedev.rng      |  4 +--
 docs/schemas/nwfilter.rng     | 54 +++++++++++++++++------------------
 docs/schemas/storagepool.rng  |  4 +--
 6 files changed, 79 insertions(+), 79 deletions(-)

diff --git a/docs/schemas/capability.rng b/docs/schemas/capability.rng
index 071090c2d..e1ab5c224 100644
--- a/docs/schemas/capability.rng
+++ b/docs/schemas/capability.rng
@@ -57,21 +57,21 @@
   <define name='secmodel'>
     <element name='secmodel'>
       <interleave>
-          <element name='model'>
-            <text/>
-          </element>
-          <element name='doi'>
-            <text/>
-          </element>
-          <zeroOrMore>
-            <element name='baselabel'>
-              <attribute name='type'>
-                <text/>
-              </attribute>
+        <element name='model'>
+          <text/>
+        </element>
+        <element name='doi'>
+          <text/>
+        </element>
+        <zeroOrMore>
+          <element name='baselabel'>
+            <attribute name='type'>
               <text/>
-            </element>
-          </zeroOrMore>
-       </interleave>
+            </attribute>
+            <text/>
+          </element>
+        </zeroOrMore>
+      </interleave>
     </element>
   </define>
 
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index a8e32014b..c9a4f7a9a 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -532,7 +532,7 @@
             <attribute name="count">
               <ref name="unsignedInt"/>
             </attribute>
-          <empty/>
+            <empty/>
           </element>
         </zeroOrMore>
       </interleave>
@@ -1866,7 +1866,7 @@
     <attribute name='copy_on_read'>
       <ref name="virOnOff"/>
     </attribute>
-    </define>
+  </define>
   <define name="discard">
     <attribute name='discard'>
       <choice>
@@ -2362,21 +2362,21 @@
             <value>vhostuser</value>
           </attribute>
           <interleave>
-              <element name="source">
-                <attribute name="type">
-                  <value>unix</value>
-                </attribute>
-                <attribute name="path">
-                  <ref name="absFilePath"/>
-                </attribute>
-                <attribute name="mode">
-                  <choice>
-                    <value>server</value>
-                    <value>client</value>
-                  </choice>
-                </attribute>
-                <empty/>
-              </element>
+            <element name="source">
+              <attribute name="type">
+                <value>unix</value>
+              </attribute>
+              <attribute name="path">
+                <ref name="absFilePath"/>
+              </attribute>
+              <attribute name="mode">
+                <choice>
+                  <value>server</value>
+                  <value>client</value>
+                </choice>
+              </attribute>
+              <empty/>
+            </element>
             <ref name="interface-options"/>
           </interleave>
         </group>
@@ -2660,14 +2660,14 @@
       <optional>
         <element name="backend">
           <optional>
-           <attribute name='tap'>
-             <ref name='absFilePath'/>
-           </attribute>
+            <attribute name='tap'>
+              <ref name='absFilePath'/>
+            </attribute>
           </optional>
           <optional>
-           <attribute name='vhost'>
-             <ref name='absFilePath'/>
-           </attribute>
+            <attribute name='vhost'>
+              <ref name='absFilePath'/>
+            </attribute>
           </optional>
         </element>
       </optional>
@@ -3981,14 +3981,14 @@
 
   <define name="tpm-backend">
     <element name="backend">
-       <choice>
-         <group>
-           <attribute name="type">
-              <value>passthrough</value>
-           </attribute>
-           <ref name="tpm-passthrough-device"/>
-         </group>
-       </choice>
+      <choice>
+        <group>
+          <attribute name="type">
+            <value>passthrough</value>
+          </attribute>
+          <ref name="tpm-passthrough-device"/>
+        </group>
+      </choice>
     </element>
   </define>
 
@@ -4001,7 +4001,7 @@
           </attribute>
         </optional>
       </element>
-   </optional>
+    </optional>
   </define>
 
   <define name="iommu">
@@ -4254,7 +4254,7 @@
       <value>scsi</value>
     </attribute>
     <optional>
-        <ref name="sgIO"/>
+      <ref name="sgIO"/>
     </optional>
     <optional>
       <ref name="rawIO"/>
diff --git a/docs/schemas/network.rng b/docs/schemas/network.rng
index 1048dabf3..f37c422bf 100644
--- a/docs/schemas/network.rng
+++ b/docs/schemas/network.rng
@@ -324,7 +324,7 @@
           <ref name="bandwidth"/>
         </optional>
         <optional>
-         <ref name="vlan"/>
+          <ref name="vlan"/>
         </optional>
 
         <!-- <ip> element -->
diff --git a/docs/schemas/nodedev.rng b/docs/schemas/nodedev.rng
index 2704eeb25..6b063cc22 100644
--- a/docs/schemas/nodedev.rng
+++ b/docs/schemas/nodedev.rng
@@ -228,7 +228,7 @@
           </element>
         </oneOrMore>
       </element>
-   </optional>
+    </optional>
 
     <optional>
       <element name='iommuGroup'>
@@ -531,7 +531,7 @@
     <optional>
       <element name='model'>
         <text/>
-        </element>
+      </element>
     </optional>
     <optional>
       <element name='vendor'>
diff --git a/docs/schemas/nwfilter.rng b/docs/schemas/nwfilter.rng
index dbe6af76c..7cfc05fa2 100644
--- a/docs/schemas/nwfilter.rng
+++ b/docs/schemas/nwfilter.rng
@@ -18,7 +18,7 @@
             <ref name="filterref-node-attributes"/>
           </element>
           <element name="rule">
-          <ref name="rule-node-attributes"/>
+            <ref name="rule-node-attributes"/>
             <optional>
               <zeroOrMore>
                 <element name="mac">
@@ -360,7 +360,7 @@
       <ref name='action-type'/>
     </attribute>
     <attribute name="direction">
-       <ref name='direction-type'/>
+      <ref name='direction-type'/>
     </attribute>
     <optional>
       <attribute name="priority">
@@ -377,9 +377,9 @@
   <define name="match-attribute">
     <interleave>
       <optional>
-         <attribute name="match">
-           <ref name="virYesNo"/>
-         </attribute>
+        <attribute name="match">
+          <ref name="virYesNo"/>
+        </attribute>
       </optional>
     </interleave>
   </define>
@@ -387,9 +387,9 @@
   <define name="srcmac-attribute">
     <interleave>
       <optional>
-         <attribute name="srcmacaddr">
-           <ref name="addrMAC"/>
-         </attribute>
+        <attribute name="srcmacaddr">
+          <ref name="addrMAC"/>
+        </attribute>
       </optional>
     </interleave>
   </define>
@@ -398,9 +398,9 @@
     <interleave>
       <ref name="srcmac-attribute"/>
       <optional>
-         <attribute name="srcmacmask">
-           <ref name="addrMAC"/>
-         </attribute>
+        <attribute name="srcmacmask">
+          <ref name="addrMAC"/>
+        </attribute>
       </optional>
     </interleave>
   </define>
@@ -409,14 +409,14 @@
     <interleave>
       <ref name="srcmacandmask-attributes"/>
       <optional>
-         <attribute name="dstmacaddr">
-           <ref name="addrMAC"/>
-         </attribute>
+        <attribute name="dstmacaddr">
+          <ref name="addrMAC"/>
+        </attribute>
       </optional>
       <optional>
-         <attribute name="dstmacmask">
-           <ref name="addrMAC"/>
-         </attribute>
+        <attribute name="dstmacmask">
+          <ref name="addrMAC"/>
+        </attribute>
       </optional>
     </interleave>
   </define>
@@ -794,13 +794,13 @@
           <ref name="boolean"/>
         </attribute>
       </optional>
-   </interleave>
+    </interleave>
   </define>
 
   <define name="ip-attributes">
     <optional>
       <attribute name="protocol">
-          <ref name="ipProtocolType"/>
+        <ref name="ipProtocolType"/>
       </attribute>
     </optional>
   </define>
@@ -854,7 +854,7 @@
       <data type="string">
         <param name="pattern">([0-2]?[0-9]?[0-9]\.){3}[0-2]?[0-9]?[0-9]</param>
       </data>
-   </choice>
+    </choice>
   </define>
 
   <define name="addrIPv6">
@@ -864,7 +864,7 @@
       <data type="string">
         <param name="pattern">([a-fA-F0-9]{0,4}:){2,7}([a-fA-F0-9]*)(([0-2]?[0-9]?[0-9]\.){3}[0-2]?[0-9]?[0-9])?</param>
       </data>
-   </choice>
+    </choice>
   </define>
 
   <define name="addrMask">
@@ -879,7 +879,7 @@
       <data type="string">
         <param name="pattern">([0-2]?[0-9]?[0-9]\.){3}[0-2]?[0-9]?[0-9]</param>
       </data>
-   </choice>
+    </choice>
   </define>
 
   <define name="addrMaskv6">
@@ -894,7 +894,7 @@
       <data type="string">
         <param name="pattern">([a-fA-F0-9]{0,4}:){2,7}([a-fA-F0-9]*)</param>
       </data>
-   </choice>
+    </choice>
   </define>
 
   <define name="sixbitrange">
@@ -1062,10 +1062,10 @@
   </define>
 
   <define name='priority-type'>
-      <data type="int">
-        <param name="minInclusive">-1000</param>
-        <param name="maxInclusive">1000</param>
-      </data>
+    <data type="int">
+      <param name="minInclusive">-1000</param>
+      <param name="maxInclusive">1000</param>
+    </data>
   </define>
   <define name='statematch-type'>
     <data type="string">
diff --git a/docs/schemas/storagepool.rng b/docs/schemas/storagepool.rng
index 8386f29aa..f0117bd69 100644
--- a/docs/schemas/storagepool.rng
+++ b/docs/schemas/storagepool.rng
@@ -521,7 +521,7 @@
             <ref name='sourceinfodir'/>
             <ref name='sourcefmtnetfs'/>
             <optional>
-                <ref name='sourceinfovendor'/>
+              <ref name='sourceinfovendor'/>
             </optional>
           </interleave>
         </group>
@@ -538,7 +538,7 @@
               </attribute>
             </element>
             <optional>
-                <ref name='sourceinfovendor'/>
+              <ref name='sourceinfovendor'/>
             </optional>
           </interleave>
         </group>
-- 
2.13.5




More information about the libvir-list mailing list