Skip to content

Commit 903a95e

Browse files
committed
stomp: fix XML to remove useless wrapping para tags via script
1 parent 70b979a commit 903a95e

20 files changed

Lines changed: 540 additions & 644 deletions

reference/stomp/examples.xml

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 6a6061bbd4b1c78af2b50aba8ddd8fd5e4590b05 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
3-
4-
<chapter xml:id="stomp.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: d0ec3a70d19f82d65d0d201bd7b8573f431cdda6 Maintainer: leonardolara Status: ready -->
3+
<!-- CREDITS: leonardolara -->
4+
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="stomp.examples">
55
&reftitle.examples;
66
<!-- section xml:id="stomp.examples-overview" -->
7-
<para>
8-
<example>
9-
<title>&style.oop;</title>
10-
<programlisting role="php">
7+
<example>
8+
<title>&style.oop;</title>
9+
<programlisting role="php">
1110
<![CDATA[
1211
<?php
1312
@@ -42,9 +41,9 @@ unset($stomp);
4241
4342
?>
4443
]]>
45-
</programlisting>
46-
&example.outputs.similar;
47-
<screen>
44+
</programlisting>
45+
&example.outputs.similar;
46+
<screen>
4847
<![CDATA[
4948
object(StompFrame)#2 (3) {
5049
["command"]=>
@@ -66,13 +65,11 @@ object(StompFrame)#2 (3) {
6665
string(3) "bar"
6766
}
6867
]]>
69-
</screen>
70-
</example>
71-
</para>
72-
<para>
73-
<example>
74-
<title>&style.procedural;</title>
75-
<programlisting role="php">
68+
</screen>
69+
</example>
70+
<example>
71+
<title>&style.procedural;</title>
72+
<programlisting role="php">
7673
<![CDATA[
7774
<?php
7875
@@ -114,9 +111,9 @@ stomp_close($link);
114111
115112
?>
116113
]]>
117-
</programlisting>
118-
&example.outputs.similar;
119-
<screen>
114+
</programlisting>
115+
&example.outputs.similar;
116+
<screen>
120117
<![CDATA[
121118
array(3) {
122119
["command"]=>
@@ -140,12 +137,10 @@ array(3) {
140137
}
141138
}
142139
]]>
143-
</screen>
144-
</example>
145-
</para>
140+
</screen>
141+
</example>
146142
<!-- /section -->
147143
</chapter>
148-
149144
<!-- Keep this comment at the end of the file
150145
Local variables:
151146
mode: sgml
@@ -166,4 +161,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
166161
vim: et tw=78 syn=sgml
167162
vi: ts=1 sw=1
168163
-->
169-

reference/stomp/functions/stomp-connect-error.xml

Lines changed: 12 additions & 15 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: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
3-
4-
<refentry xml:id="function.stomp-connect-error" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: d0ec3a70d19f82d65d0d201bd7b8573f431cdda6 Maintainer: leonardolara Status: ready -->
3+
<!-- CREDITS: leonardolara -->
4+
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.stomp-connect-error">
55
<refnamediv>
66
<refname>stomp_connect_error</refname>
77
<refpurpose>Retorna uma descrição de string do último erro de conexão</refpurpose>
@@ -11,7 +11,7 @@
1111
&reftitle.description;
1212
<methodsynopsis>
1313
<type>string</type><methodname>stomp_connect_error</methodname>
14-
<void />
14+
<void/>
1515
</methodsynopsis>
1616
<para>
1717
Retorna uma descrição de string do último erro de conexão.
@@ -32,10 +32,9 @@
3232

3333
<refsect1 role="examples">
3434
&reftitle.examples;
35-
<para>
36-
<example>
37-
<title>Exemplo de <function>stomp_connect_error</function></title>
38-
<programlisting role="php">
35+
<example>
36+
<title>Exemplo de <function>stomp_connect_error</function></title>
37+
<programlisting role="php">
3938
<![CDATA[
4039
<?php
4140
$link = stomp_connect('http://localhost:61613');
@@ -45,20 +44,18 @@ if(!$link) {
4544
}
4645
?>
4746
]]>
48-
</programlisting>
49-
&example.outputs.similar;
50-
<screen>
47+
</programlisting>
48+
&example.outputs.similar;
49+
<screen>
5150
<![CDATA[
5251
Conexão falhou: Invalid Broker URI scheme
5352
]]>
54-
</screen>
55-
</example>
56-
</para>
53+
</screen>
54+
</example>
5755
</refsect1>
5856

5957

6058
</refentry>
61-
6259
<!-- Keep this comment at the end of the file
6360
Local variables:
6461
mode: sgml

reference/stomp/functions/stomp-version.xml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 5766bbf8cd89cda01c5ca1e1cc7cf0ebc94b542c Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
3-
4-
<refentry xml:id="function.stomp-version" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: d0ec3a70d19f82d65d0d201bd7b8573f431cdda6 Maintainer: leonardolara Status: ready -->
3+
<!-- CREDITS: leonardolara -->
4+
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.stomp-version">
55
<refnamediv>
66
<refname>stomp_version</refname>
77
<refpurpose>Obtém a versão atual da extensão stomp</refpurpose>
@@ -11,7 +11,7 @@
1111
&reftitle.description;
1212
<methodsynopsis>
1313
<type>string</type><methodname>stomp_version</methodname>
14-
<void />
14+
<void/>
1515
</methodsynopsis>
1616
<para>
1717
Retorna uma string contendo a versão da extensão stomp atual.
@@ -32,31 +32,28 @@
3232

3333
<refsect1 role="examples">
3434
&reftitle.examples;
35-
<para>
36-
<example>
37-
<title>Exemplo de <function>stomp_version</function></title>
38-
<programlisting role="php">
35+
<example>
36+
<title>Exemplo de <function>stomp_version</function></title>
37+
<programlisting role="php">
3938
<![CDATA[
4039
<?php
4140
4241
var_dump(stomp_version());
4342
4443
?>
4544
]]>
46-
</programlisting>
47-
&example.outputs.similar;
48-
<screen>
45+
</programlisting>
46+
&example.outputs.similar;
47+
<screen>
4948
<![CDATA[
5049
string(5) "0.2.0"
5150
]]>
52-
</screen>
53-
</example>
54-
</para>
51+
</screen>
52+
</example>
5553
</refsect1>
5654

5755

5856
</refentry>
59-
6057
<!-- Keep this comment at the end of the file
6158
Local variables:
6259
mode: sgml

0 commit comments

Comments
 (0)