[DOC-CVS] [doc-en] master: rrd: fix XML to remove useless wrapping para tags via script

[email protected] (Gina Peter Banyard)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Gina Peter Banyard (Girgias)
Date: 2026-01-25T15:20:40Z

Commit: https://github.com/php/doc-en/commit/37e7d055786fee00e175f04b6a2f2391996fe471
Raw diff: https://github.com/php/doc-en/commit/37e7d055786fee00e175f04b6a2f2391996fe471.diff

rrd: fix XML to remove useless wrapping para tags via script

Changed paths:
  M  reference/rrd/examples.xml
  M  reference/rrd/rrdupdater/update.xml


Diff:

diff --git a/reference/rrd/examples.xml b/reference/rrd/examples.xml
index b3d20866c0f8..f69c7dff142d 100644
--- a/reference/rrd/examples.xml
+++ b/reference/rrd/examples.xml
@@ -1,14 +1,12 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-
-<chapter xml:id="rrd.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="rrd.examples">
  &reftitle.examples;
  <section xml:id="rrd.examples-procedural">
   <title>Procedural PECL/rrd example</title>
-  <para>
-   <example>
-    <title>Procedural usage of rrd</title>
-    <programlisting role="php">
+  <example>
+   <title>Procedural usage of rrd</title>
+   <programlisting role="php">
 <![CDATA[
 <?php
 $rrdFile = dirname(__FILE__) . "/speed.rrd";
@@ -44,17 +42,15 @@ rrd_graph(dirname(__FILE__) . "/speed.png",
 );
 ?>
 ]]>
-    </programlisting>
-   </example>
-  </para>
+   </programlisting>
+  </example>
  </section>
 
  <section xml:id="rrd.examples-oop">
   <title>OOP PECL/rrd example</title>
-  <para>
-   <example>
-    <title>OO usage of rrd</title>
-    <programlisting role="php">
+  <example>
+   <title>OO usage of rrd</title>
+   <programlisting role="php">
 <![CDATA[
 <?php
 $rrdFile = dirname(__FILE__) . "/speed.rrd";
@@ -84,13 +80,11 @@ $graphObj->setOptions(
 $graphObj->save();
 ?>
 ]]>
-    </programlisting>
-   </example>
-  </para>
+   </programlisting>
+  </example>
  </section>
 
 </chapter>
-
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml
diff --git a/reference/rrd/rrdupdater/update.xml b/reference/rrd/rrdupdater/update.xml
index 618040f80de6..a0265d19322e 100644
--- a/reference/rrd/rrdupdater/update.xml
+++ b/reference/rrd/rrdupdater/update.xml
@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-
-<refentry xml:id="rrdupdater.update" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="rrdupdater.update">
  <refnamediv>
   <refname>RRDUpdater::update</refname>
   <refpurpose>Update the RRD database file</refpurpose>
@@ -24,27 +23,25 @@
 
  <refsect1 role="parameters">
   &reftitle.parameters;
-  <para>
-   <variablelist>
-    <varlistentry>
-     <term><parameter>values</parameter></term>
-     <listitem>
-      <para>
-       Data for update. Key is data source name.
-      </para>
-     </listitem>
-    </varlistentry>
-    <varlistentry>
-     <term><parameter>time</parameter></term>
-     <listitem>
-      <para>
-       Time value for updating the RRD with a particular data. Default value
-       is current time.
-      </para>
-     </listitem>
-    </varlistentry>
-   </variablelist>
-  </para>
+  <variablelist>
+   <varlistentry>
+    <term><parameter>values</parameter></term>
+    <listitem>
+     <para>
+      Data for update. Key is data source name.
+     </para>
+    </listitem>
+   </varlistentry>
+   <varlistentry>
+    <term><parameter>time</parameter></term>
+    <listitem>
+     <para>
+      Time value for updating the RRD with a particular data. Default value
+      is current time.
+     </para>
+    </listitem>
+   </varlistentry>
+  </variablelist>
  </refsect1>
 
  <refsect1 role="returnvalues">
@@ -63,10 +60,9 @@
 
  <refsect1 role="examples">
   &reftitle.examples;
-  <para>
-   <example>
-    <title><methodname>RRDUpdater::update</methodname> examples</title>
-    <programlisting role="php">
+  <example>
+   <title><methodname>RRDUpdater::update</methodname> examples</title>
+   <programlisting role="php">
 <![CDATA[
 <?php
 $updator = new RRDUpdater("speed.rrd");
@@ -75,12 +71,10 @@ $updator = new RRDUpdater("speed.rrd");
 $updator->update(array("speed" => "12411"), "920807700");
 ?>
 ]]>
-    </programlisting>
-   </example>
-  </para>
+   </programlisting>
+  </example>
  </refsect1>
 </refentry>
-
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.