Skip to content

Commit 6432150

Browse files
committed
rar: fix XML to remove useless wrapping para tags via script
1 parent 0d99fee commit 6432150

22 files changed

Lines changed: 657 additions & 798 deletions

reference/rar/examples.xml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 8859c8b96cd9e80652813f7bcf561432a5e9f934 Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto,leonardolara -->
3-
4-
<chapter xml:id="rar.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: 49395299550ff534324a540b902c5480d0b834e4 Maintainer: fernandowobeto Status: ready -->
3+
<!-- CREDITS: fernandowobeto,leonardolara -->
4+
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="rar.examples">
55
&reftitle.examples;
66

77
<para>
88
Veja também os exemplos do empacotador <link linkend="wrappers.rar"><literal>rar://</literal></link>.
99
</para>
1010

11-
<para>
12-
<example>
13-
<title>Descompressão instantânea</title>
14-
<programlisting role="php">
11+
<example>
12+
<title>Descompressão instantânea</title>
13+
<programlisting role="php">
1514
<![CDATA[
1615
<?php
1716
@@ -115,17 +114,15 @@ while (!feof($fp)) {
115114
}
116115
?>
117116
]]>
118-
</programlisting>
119-
</example>
120-
</para>
117+
</programlisting>
118+
</example>
121119
<para>
122120
Este exemplo abre um arquivo RAR e apresenta o arquivo solicitado dentro do arquivo RAR para download no cliente.
123121
</para>
124122

125-
<para>
126-
<example>
127-
<title>Exemplo de extração de sistema de arquivos com extensão RAR</title>
128-
<programlisting role="php">
123+
<example>
124+
<title>Exemplo de extração de sistema de arquivos com extensão RAR</title>
125+
<programlisting role="php">
129126
<![CDATA[
130127
<?php
131128
@@ -145,16 +142,14 @@ rar_close($rar_file);
145142
146143
?>
147144
]]>
148-
</programlisting>
149-
</example>
150-
</para>
145+
</programlisting>
146+
</example>
151147
<para>
152148
Este exemplo abre um arquivo RAR e extrai cada entrada para o
153149
diretório especificado.
154150
</para>
155151

156152
</chapter>
157-
158153
<!-- Keep this comment at the end of the file
159154
Local variables:
160155
mode: sgml
@@ -175,4 +170,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
175170
vim: et tw=78 syn=sgml
176171
vi: ts=1 sw=1
177172
-->
178-

reference/rar/rararchive/close.xml

Lines changed: 48 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: af5f2f87b3b0bb9ee0f83ccb787a4e7db1eb6bd4 Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
3-
4-
<refentry xml:id="rararchive.close" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: 49395299550ff534324a540b902c5480d0b834e4 Maintainer: fernandowobeto Status: ready -->
3+
<!-- CREDITS: fernandowobeto -->
4+
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="rararchive.close">
55
<refnamediv>
66
<refname>RarArchive::close</refname>
77
<refname>rar_close</refname>
@@ -13,7 +13,7 @@
1313
<para>&style.oop; (method):</para>
1414
<methodsynopsis>
1515
<modifier>public</modifier> <type>bool</type><methodname>RarArchive::close</methodname>
16-
<void />
16+
<void/>
1717
</methodsynopsis>
1818
<para>&style.procedural;:</para>
1919
<methodsynopsis>
@@ -27,18 +27,16 @@
2727

2828
<refsect1 role="parameters">
2929
&reftitle.parameters;
30-
<para>
31-
<variablelist>
32-
<varlistentry>
33-
<term><parameter>rarfile</parameter></term>
34-
<listitem>
35-
<para>
36-
Um objeto <type>RarArchive</type>, aberto com <function>rar_open</function>.
37-
</para>
38-
</listitem>
39-
</varlistentry>
40-
</variablelist>
41-
</para>
30+
<variablelist>
31+
<varlistentry>
32+
<term><parameter>rarfile</parameter></term>
33+
<listitem>
34+
<para>
35+
Um objeto <type>RarArchive</type>, aberto com <function>rar_open</function>.
36+
</para>
37+
</listitem>
38+
</varlistentry>
39+
</variablelist>
4240
</refsect1>
4341

4442
<refsect1 role="returnvalues">
@@ -50,37 +48,34 @@
5048

5149
<refsect1 role="changelog">
5250
&reftitle.changelog;
53-
<para>
54-
<informaltable>
55-
<tgroup cols="2">
56-
<thead>
57-
<row>
58-
<entry>&Version;</entry>
59-
<entry>&Description;</entry>
60-
</row>
61-
</thead>
62-
<tbody>
63-
<row>
64-
<entry>PECL rar 2.0.0</entry>
65-
<entry>
66-
As entradas RAR retornadas por <methodname>RarArchive::getEntry</methodname>
67-
e <methodname>RarArchive::getEntries</methodname> agora são invalidadas ao
68-
chamar este método. Isso significa que todos os métodos de instância chamados para
69-
tais entradas não têm garantia de sucesso.
70-
</entry>
71-
</row>
72-
</tbody>
73-
</tgroup>
74-
</informaltable>
75-
</para>
51+
<informaltable>
52+
<tgroup cols="2">
53+
<thead>
54+
<row>
55+
<entry>&Version;</entry>
56+
<entry>&Description;</entry>
57+
</row>
58+
</thead>
59+
<tbody>
60+
<row>
61+
<entry>PECL rar 2.0.0</entry>
62+
<entry>
63+
As entradas RAR retornadas por <methodname>RarArchive::getEntry</methodname>
64+
e <methodname>RarArchive::getEntries</methodname> agora são invalidadas ao
65+
chamar este método. Isso significa que todos os métodos de instância chamados para
66+
tais entradas não têm garantia de sucesso.
67+
</entry>
68+
</row>
69+
</tbody>
70+
</tgroup>
71+
</informaltable>
7672
</refsect1>
7773

7874
<refsect1 role="examples">
7975
&reftitle.examples;
80-
<para>
81-
<example>
82-
<title>&style.oop;</title>
83-
<programlisting role="php">
76+
<example>
77+
<title>&style.oop;</title>
78+
<programlisting role="php">
8479
<![CDATA[
8580
<?php
8681
$rar_arch = RarArchive::open('latest_winrar.rar');
@@ -89,20 +84,18 @@ $rar_arch->close();
8984
echo $rar_arch."\n";
9085
?>
9186
]]>
92-
</programlisting>
93-
&example.outputs.similar;
94-
<screen>
87+
</programlisting>
88+
&example.outputs.similar;
89+
<screen>
9590
<![CDATA[
9691
RAR Archive "D:\php_rar\trunk\tests\latest_winrar.rar"
9792
RAR Archive "D:\php_rar\trunk\tests\latest_winrar.rar" (closed)
9893
]]>
99-
</screen>
100-
</example>
101-
</para>
102-
<para>
103-
<example>
104-
<title>&style.procedural;</title>
105-
<programlisting role="php">
94+
</screen>
95+
</example>
96+
<example>
97+
<title>&style.procedural;</title>
98+
<programlisting role="php">
10699
<![CDATA[
107100
<?php
108101
$rar_arch = rar_open('latest_winrar.rar');
@@ -111,14 +104,12 @@ rar_close($rar_arch);
111104
echo $rar_arch."\n";
112105
?>
113106
]]>
114-
</programlisting>
115-
</example>
116-
</para>
107+
</programlisting>
108+
</example>
117109
</refsect1>
118110

119111

120112
</refentry>
121-
122113
<!-- Keep this comment at the end of the file
123114
Local variables:
124115
mode: sgml

reference/rar/rararchive/getcomment.xml

Lines changed: 27 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
3-
4-
<refentry xml:id="rararchive.getcomment" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: 49395299550ff534324a540b902c5480d0b834e4 Maintainer: fernandowobeto Status: ready -->
3+
<!-- CREDITS: fernandowobeto -->
4+
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="rararchive.getcomment">
55
<refnamediv>
66
<refname>RarArchive::getComment</refname>
77
<refname>rar_comment_get</refname>
@@ -13,7 +13,7 @@
1313
<para>&style.oop; (method):</para>
1414
<methodsynopsis>
1515
<modifier>public</modifier> <type>string</type><methodname>RarArchive::getComment</methodname>
16-
<void />
16+
<void/>
1717
</methodsynopsis>
1818
<para>&style.procedural;:</para>
1919
<methodsynopsis>
@@ -32,18 +32,16 @@
3232

3333
<refsect1 role="parameters">
3434
&reftitle.parameters;
35-
<para>
36-
<variablelist>
37-
<varlistentry>
38-
<term><parameter>rarfile</parameter></term>
39-
<listitem>
40-
<para>
41-
Um objeto <type>RarArchive</type>, aberto com <function>rar_open</function>.
42-
</para>
43-
</listitem>
44-
</varlistentry>
45-
</variablelist>
46-
</para>
35+
<variablelist>
36+
<varlistentry>
37+
<term><parameter>rarfile</parameter></term>
38+
<listitem>
39+
<para>
40+
Um objeto <type>RarArchive</type>, aberto com <function>rar_open</function>.
41+
</para>
42+
</listitem>
43+
</varlistentry>
44+
</variablelist>
4745
</refsect1>
4846

4947
<refsect1 role="returnvalues">
@@ -62,43 +60,38 @@
6260

6361
<refsect1 role="examples">
6462
&reftitle.examples;
65-
<para>
66-
<example>
67-
<title>&style.oop;</title>
68-
<programlisting role="php">
63+
<example>
64+
<title>&style.oop;</title>
65+
<programlisting role="php">
6966
<![CDATA[
7067
<?php
7168
$rar_arch = RarArchive::open('commented.rar');
7269
echo $rar_arch->getComment();
7370
?>
7471
]]>
75-
</programlisting>
76-
&example.outputs.similar;
77-
<screen>
72+
</programlisting>
73+
&example.outputs.similar;
74+
<screen>
7875
<![CDATA[
7976
Este é o comentário do arquivo commented.rar.
8077
]]>
81-
</screen>
82-
</example>
83-
</para>
84-
<para>
85-
<example>
86-
<title>&style.procedural;</title>
87-
<programlisting role="php">
78+
</screen>
79+
</example>
80+
<example>
81+
<title>&style.procedural;</title>
82+
<programlisting role="php">
8883
<![CDATA[
8984
<?php
9085
$rar_arch = rar_open('commented.rar');
9186
echo rar_comment_get($rar_arch);
9287
?>
9388
]]>
94-
</programlisting>
95-
</example>
96-
</para>
89+
</programlisting>
90+
</example>
9791
</refsect1>
9892

9993

10094
</refentry>
101-
10295
<!-- Keep this comment at the end of the file
10396
Local variables:
10497
mode: sgml

0 commit comments

Comments
 (0)