[DOC-CVS] [doc-en] master: recode: 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:52:33Z
Commit: https://github.com/php/doc-en/commit/f538ce7ce843fd429cf8d9fcd342aee1269b621d
Raw diff: https://github.com/php/doc-en/commit/f538ce7ce843fd429cf8d9fcd342aee1269b621d.diff
recode: fix XML to remove useless wrapping para tags via script
Changed paths:
M reference/recode/functions/recode-file.xml
M reference/recode/functions/recode-string.xml
Diff:
diff --git a/reference/recode/functions/recode-file.xml b/reference/recode/functions/recode-file.xml
index 30addee5322c..a58c9effd838 100644
--- a/reference/recode/functions/recode-file.xml
+++ b/reference/recode/functions/recode-file.xml
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<refentry xml:id="function.recode-file" xmlns="http://docbook.org/ns/docbook">
+<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.recode-file">
<refnamediv>
<refname>recode_file</refname>
<refpurpose>Recode from file to file according to recode request</refpurpose>
</refnamediv>
-
+
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
@@ -24,36 +24,34 @@
<refsect1 role="parameters">
&reftitle.parameters;
- <para>
- <variablelist>
- <varlistentry>
- <term><parameter>request</parameter></term>
- <listitem>
- <para>
- The desired recode request type
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><parameter>input</parameter></term>
- <listitem>
- <para>
- A local file handle <type>resource</type> for
- the <parameter>input</parameter>
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><parameter>output</parameter></term>
- <listitem>
- <para>
- A local file handle <type>resource</type> for
- the <parameter>output</parameter>
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>request</parameter></term>
+ <listitem>
+ <para>
+ The desired recode request type
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>input</parameter></term>
+ <listitem>
+ <para>
+ A local file handle <type>resource</type> for
+ the <parameter>input</parameter>
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>output</parameter></term>
+ <listitem>
+ <para>
+ A local file handle <type>resource</type> for
+ the <parameter>output</parameter>
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
</refsect1>
<refsect1 role="returnvalues">
@@ -65,10 +63,9 @@
<refsect1 role="examples">
&reftitle.examples;
- <para>
- <example>
- <title>Basic <function>recode_file</function> example</title>
- <programlisting role="php">
+ <example>
+ <title>Basic <function>recode_file</function> example</title>
+ <programlisting role="php">
<![CDATA[
<?php
$input = fopen('input.txt', 'r');
@@ -76,9 +73,8 @@ $output = fopen('output.txt', 'w');
recode_file("us..flat", $input, $output);
?>
]]>
- </programlisting>
- </example>
- </para>
+ </programlisting>
+ </example>
</refsect1>
<refsect1 role="notes">
@@ -91,15 +87,12 @@ recode_file("us..flat", $input, $output);
<refsect1 role="seealso">
&reftitle.seealso;
- <para>
- <simplelist>
- <member><function>fopen</function></member>
- </simplelist>
- </para>
+ <simplelist>
+ <member><function>fopen</function></member>
+ </simplelist>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/recode/functions/recode-string.xml b/reference/recode/functions/recode-string.xml
index 9935c89184fa..680cd9ac2b74 100644
--- a/reference/recode/functions/recode-string.xml
+++ b/reference/recode/functions/recode-string.xml
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<refentry xml:id="function.recode-string" xmlns="http://docbook.org/ns/docbook">
+<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.recode-string">
<refnamediv>
<refname>recode_string</refname>
<refpurpose>Recode a string according to a recode request</refpurpose>
</refnamediv>
-
+
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
@@ -15,57 +15,53 @@
</methodsynopsis>
<para>
Recode the string <parameter>string</parameter> according to
- the recode request <parameter>request</parameter>.
+ the recode request <parameter>request</parameter>.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
- <para>
- <variablelist>
- <varlistentry>
- <term><parameter>request</parameter></term>
- <listitem>
- <para>
- The desired recode request type
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><parameter>string</parameter></term>
- <listitem>
- <para>
- The <type>string</type> to be recoded
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>request</parameter></term>
+ <listitem>
+ <para>
+ The desired recode request type
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>string</parameter></term>
+ <listitem>
+ <para>
+ The <type>string</type> to be recoded
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns the recoded <type>string</type> or &false;, if unable to
+ Returns the recoded <type>string</type> or &false;, if unable to
perform the recode request.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
- <para>
- <example>
- <title>Basic <function>recode_string</function> example</title>
- <programlisting role="php">
+ <example>
+ <title>Basic <function>recode_string</function> example</title>
+ <programlisting role="php">
<![CDATA[
<?php
echo recode_string("us..flat", "The following character has a diacritical mark: á");
?>
]]>
- </programlisting>
- </example>
- </para>
+ </programlisting>
+ </example>
</refsect1>
<refsect1 role="notes">
@@ -77,21 +73,18 @@ echo recode_string("us..flat", "The following character has a diacritical mark:
<refsect1 role="seealso">
&reftitle.seealso;
- <para>
- <simplelist>
- <member>
- The GNU Recode documentation of your installation for detailed
- instructions about recode requests.
- </member>
- <member><function>mb_convert_encoding</function></member>
- <member><methodname>UConverter::transcode</methodname></member>
- <member><function>iconv</function></member>
- </simplelist>
- </para>
+ <simplelist>
+ <member>
+ The GNU Recode documentation of your installation for detailed
+ instructions about recode requests.
+ </member>
+ <member><function>mb_convert_encoding</function></member>
+ <member><methodname>UConverter::transcode</methodname></member>
+ <member><function>iconv</function></member>
+ </simplelist>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml