]> xenbits.xensource.com Git - libvirt.git/commitdiff
rng: Fix formatting
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Sep 2017 10:16:04 +0000 (12:16 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 12 Sep 2017 11:41:21 +0000 (13:41 +0200)
Some elements are offset just one space compared to their parent,
some are misaligned completely, and so on.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
docs/schemas/capability.rng
docs/schemas/domaincommon.rng
docs/schemas/network.rng
docs/schemas/nodedev.rng
docs/schemas/nwfilter.rng
docs/schemas/storagepool.rng

index 071090c2d9916971ca7e20f86772dea4b63d2801..e1ab5c224062f2e7f38a9199a8b72e71509fd754 100644 (file)
   <define name='secmodel'>
     <element name='secmodel'>
       <interleave>
-          <element name='model'>
-            <text/>
-          </element>
-          <element name='doi'>
+        <element name='model'>
+          <text/>
+        </element>
+        <element name='doi'>
+          <text/>
+        </element>
+        <zeroOrMore>
+          <element name='baselabel'>
+            <attribute name='type'>
+              <text/>
+            </attribute>
             <text/>
           </element>
-          <zeroOrMore>
-            <element name='baselabel'>
-              <attribute name='type'>
-                <text/>
-              </attribute>
-              <text/>
-            </element>
-          </zeroOrMore>
-       </interleave>
+        </zeroOrMore>
+      </interleave>
     </element>
   </define>
 
index a8e32014b5acba77b9a058edfd7a44b004048902..c9a4f7a9aac8d227e58ec24fad826e0368310859 100644 (file)
             <attribute name="count">
               <ref name="unsignedInt"/>
             </attribute>
-          <empty/>
+            <empty/>
           </element>
         </zeroOrMore>
       </interleave>
     <attribute name='copy_on_read'>
       <ref name="virOnOff"/>
     </attribute>
-    </define>
+  </define>
   <define name="discard">
     <attribute name='discard'>
       <choice>
             <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>
       <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>
 
   <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>
 
           </attribute>
         </optional>
       </element>
-   </optional>
+    </optional>
   </define>
 
   <define name="iommu">
       <value>scsi</value>
     </attribute>
     <optional>
-        <ref name="sgIO"/>
+      <ref name="sgIO"/>
     </optional>
     <optional>
       <ref name="rawIO"/>
index 1048dabf3e65fb80f30920b18fa6a460c4ccba06..f37c422bf30f1c5a813c4b54a70857d7ecb7b5ef 100644 (file)
           <ref name="bandwidth"/>
         </optional>
         <optional>
-         <ref name="vlan"/>
+          <ref name="vlan"/>
         </optional>
 
         <!-- <ip> element -->
index 2704eeb256dc87bb8240c0eeef07879c080995e5..6b063cc225e23b6a0aeebaafb97165116e9e2be1 100644 (file)
           </element>
         </oneOrMore>
       </element>
-   </optional>
+    </optional>
 
     <optional>
       <element name='iommuGroup'>
     <optional>
       <element name='model'>
         <text/>
-        </element>
+      </element>
     </optional>
     <optional>
       <element name='vendor'>
index dbe6af76cd2919f9bc9d52b1891f8396bf258830..7cfc05fa2e35040084853ffeb6c59f43f4fa025c 100644 (file)
@@ -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">
       <ref name='action-type'/>
     </attribute>
     <attribute name="direction">
-       <ref name='direction-type'/>
+      <ref name='direction-type'/>
     </attribute>
     <optional>
       <attribute name="priority">
   <define name="match-attribute">
     <interleave>
       <optional>
-         <attribute name="match">
-           <ref name="virYesNo"/>
-         </attribute>
+        <attribute name="match">
+          <ref name="virYesNo"/>
+        </attribute>
       </optional>
     </interleave>
   </define>
   <define name="srcmac-attribute">
     <interleave>
       <optional>
-         <attribute name="srcmacaddr">
-           <ref name="addrMAC"/>
-         </attribute>
+        <attribute name="srcmacaddr">
+          <ref name="addrMAC"/>
+        </attribute>
       </optional>
     </interleave>
   </define>
     <interleave>
       <ref name="srcmac-attribute"/>
       <optional>
-         <attribute name="srcmacmask">
-           <ref name="addrMAC"/>
-         </attribute>
+        <attribute name="srcmacmask">
+          <ref name="addrMAC"/>
+        </attribute>
       </optional>
     </interleave>
   </define>
     <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>
           <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>
       <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">
       <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">
       <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">
       <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">
   </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">
index 8386f29aa730763fe05eaf59fd4b7abc1a7b7b94..f0117bd69fb76b2857fab7428c35dae214f328d8 100644 (file)
             <ref name='sourceinfodir'/>
             <ref name='sourcefmtnetfs'/>
             <optional>
-                <ref name='sourceinfovendor'/>
+              <ref name='sourceinfovendor'/>
             </optional>
           </interleave>
         </group>
               </attribute>
             </element>
             <optional>
-                <ref name='sourceinfovendor'/>
+              <ref name='sourceinfovendor'/>
             </optional>
           </interleave>
         </group>