Skip to content

Commit 9d2fd32

Browse files
authored
geoip: fix XML by converting para to simpara tags via script (#5131)
1 parent 1742a68 commit 9d2fd32

23 files changed

+230
-234
lines changed

reference/geoip/book.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<book xml:id="book.geoip" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<book xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="book.geoip">
33
<?phpdoc extension-membership="pecl" ?>
44
<title>Geo IP Location</title>
55
<titleabbrev>GeoIP</titleabbrev>
66

77
<preface xml:id="intro.geoip">
88
&reftitle.intro;
9-
<para>
9+
<simpara>
1010
The GeoIP extension allows you to find the location of an IP address. City,
11-
State, Country, Longitude, Latitude, and other information as all, such as
11+
State, Country, Longitude, Latitude, and other information as all, such as
1212
ISP and connection type can be obtained with the help of GeoIP.
13-
</para>
13+
</simpara>
1414
<warning>
15-
<para>
15+
<simpara>
1616
This extension does not support MaxMind's current "GeoIP2" databases,
1717
only the "GeoIP legacy" database files.
18-
</para>
18+
</simpara>
1919
</warning>
2020
</preface>
2121

reference/geoip/constants.xml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<appendix xml:id="geoip.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
3+
<appendix xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="geoip.constants">
44
&reftitle.constants;
55
&extension.constants;
66
<variablelist>
@@ -126,17 +126,17 @@
126126
</listitem>
127127
</varlistentry>
128128
</variablelist>
129-
<para>
129+
<simpara>
130130
The following constants are for net speed:
131-
</para>
131+
</simpara>
132132
<variablelist>
133133
<varlistentry xml:id="constant.geoip-unknown-speed">
134134
<term>
135135
<constant>GEOIP_UNKNOWN_SPEED</constant>
136136
(<type>int</type>)
137137
</term>
138138
<listitem>
139-
<simpara></simpara>
139+
<simpara/>
140140
</listitem>
141141
</varlistentry>
142142
<varlistentry xml:id="constant.geoip-dialup-speed">
@@ -145,7 +145,7 @@
145145
(<type>int</type>)
146146
</term>
147147
<listitem>
148-
<simpara></simpara>
148+
<simpara/>
149149
</listitem>
150150
</varlistentry>
151151
<varlistentry xml:id="constant.geoip-cabledsl-speed">
@@ -154,7 +154,7 @@
154154
(<type>int</type>)
155155
</term>
156156
<listitem>
157-
<simpara></simpara>
157+
<simpara/>
158158
</listitem>
159159
</varlistentry>
160160
<varlistentry xml:id="constant.geoip-corporate-speed">
@@ -163,12 +163,11 @@
163163
(<type>int</type>)
164164
</term>
165165
<listitem>
166-
<simpara></simpara>
166+
<simpara/>
167167
</listitem>
168168
</varlistentry>
169169
</variablelist>
170170
</appendix>
171-
172171
<!-- Keep this comment at the end of the file
173172
Local variables:
174173
mode: sgml

reference/geoip/functions/geoip-asnum-by-name.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
<methodparam><type>string</type><parameter>hostname</parameter></methodparam>
1313
</methodsynopsis>
1414

15-
<para>
15+
<simpara>
1616
The <function>geoip_asnum_by_name</function> function will return the Autonomous
1717
System Numbers (ASN) associated with an IP address.
18-
</para>
18+
</simpara>
1919

2020
</refsect1>
2121
<refsect1 role="parameters">
@@ -24,28 +24,28 @@
2424
<varlistentry>
2525
<term><parameter>hostname</parameter></term>
2626
<listitem>
27-
<para>
27+
<simpara>
2828
The hostname or IP address.
29-
</para>
29+
</simpara>
3030
</listitem>
3131
</varlistentry>
3232
</variablelist>
3333
</refsect1>
3434
<refsect1 role="returnvalues">
3535
&reftitle.returnvalues;
36-
<para>
36+
<simpara>
3737
Returns the ASN on success, or &false; if the address
3838
cannot be found in the database.
39-
</para>
39+
</simpara>
4040
</refsect1>
4141

4242
<refsect1 role="examples">
4343
&reftitle.examples;
4444
<example>
4545
<title>A <function>geoip_asnum_by_name</function> example</title>
46-
<para>
46+
<simpara>
4747
This will output the ASN of the host www.example.com.
48-
</para>
48+
</simpara>
4949
<programlisting role="php">
5050
<![CDATA[
5151
<?php

reference/geoip/functions/geoip-continent-code-by-name.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
<methodparam><type>string</type><parameter>hostname</parameter></methodparam>
1313
</methodsynopsis>
1414

15-
<para>
15+
<simpara>
1616
The <function>geoip_continent_code_by_name</function> function will return
1717
the two letter continent code corresponding to a hostname or an IP address.
18-
</para>
18+
</simpara>
1919

2020
</refsect1>
2121
<refsect1 role="parameters">
@@ -24,19 +24,19 @@
2424
<varlistentry>
2525
<term><parameter>hostname</parameter></term>
2626
<listitem>
27-
<para>
27+
<simpara>
2828
The hostname or IP address whose location is to be looked-up.
29-
</para>
29+
</simpara>
3030
</listitem>
3131
</varlistentry>
3232
</variablelist>
3333
</refsect1>
3434
<refsect1 role="returnvalues">
3535
&reftitle.returnvalues;
36-
<para>
36+
<simpara>
3737
Returns the two letter continent code on success, or &false; if the
3838
address cannot be found in the database.
39-
</para>
39+
</simpara>
4040
<table>
4141
<title>Continent codes</title>
4242
<tgroup cols="2">
@@ -84,9 +84,9 @@
8484
&reftitle.examples;
8585
<example>
8686
<title>A <function>geoip_continent_code_by_name</function> example</title>
87-
<para>
87+
<simpara>
8888
This will print where the host example.com is located.
89-
</para>
89+
</simpara>
9090
<programlisting role="php">
9191
<![CDATA[
9292
<?php

reference/geoip/functions/geoip-country-code-by-name.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
<methodparam><type>string</type><parameter>hostname</parameter></methodparam>
1313
</methodsynopsis>
1414

15-
<para>
15+
<simpara>
1616
The <function>geoip_country_code_by_name</function> function will return
1717
the two letter country code corresponding to a hostname or an IP address.
18-
</para>
18+
</simpara>
1919

2020
</refsect1>
2121
<refsect1 role="parameters">
@@ -24,28 +24,28 @@
2424
<varlistentry>
2525
<term><parameter>hostname</parameter></term>
2626
<listitem>
27-
<para>
27+
<simpara>
2828
The hostname or IP address whose location is to be looked-up.
29-
</para>
29+
</simpara>
3030
</listitem>
3131
</varlistentry>
3232
</variablelist>
3333
</refsect1>
3434
<refsect1 role="returnvalues">
3535
&reftitle.returnvalues;
36-
<para>
36+
<simpara>
3737
Returns the two letter ISO country code on success, or &false;
3838
if the address cannot be found in the database.
39-
</para>
39+
</simpara>
4040
</refsect1>
4141

4242
<refsect1 role="examples">
4343
&reftitle.examples;
4444
<example>
4545
<title>A <function>geoip_country_code_by_name</function> example</title>
46-
<para>
46+
<simpara>
4747
This will print where the host example.com is located.
48-
</para>
48+
</simpara>
4949
<programlisting role="php">
5050
<![CDATA[
5151
<?php
@@ -68,11 +68,11 @@ This host is located in: US
6868
<refsect1 role="notes">
6969
&reftitle.notes;
7070
<caution>
71-
<para>
71+
<simpara>
7272
Please see
7373
<link xlink:href="&url.maxmind.iso3166;">&url.maxmind.iso3166;</link> for
7474
a complete list of possible return values, including special codes.
75-
</para>
75+
</simpara>
7676
</caution>
7777
</refsect1>
7878

reference/geoip/functions/geoip-country-code3-by-name.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
<methodparam><type>string</type><parameter>hostname</parameter></methodparam>
1313
</methodsynopsis>
1414

15-
<para>
15+
<simpara>
1616
The <function>geoip_country_code3_by_name</function> function will return the
1717
three letter country code corresponding to a hostname or an IP address.
18-
</para>
18+
</simpara>
1919

2020
</refsect1>
2121
<refsect1 role="parameters">
@@ -24,28 +24,28 @@
2424
<varlistentry>
2525
<term><parameter>hostname</parameter></term>
2626
<listitem>
27-
<para>
27+
<simpara>
2828
The hostname or IP address whose location is to be looked-up.
29-
</para>
29+
</simpara>
3030
</listitem>
3131
</varlistentry>
3232
</variablelist>
3333
</refsect1>
3434
<refsect1 role="returnvalues">
3535
&reftitle.returnvalues;
36-
<para>
36+
<simpara>
3737
Returns the three letter country code on success, or &false;
3838
if the address cannot be found in the database.
39-
</para>
39+
</simpara>
4040
</refsect1>
4141

4242
<refsect1 role="examples">
4343
&reftitle.examples;
4444
<example>
4545
<title>A <function>geoip_country_code3_by_name</function> example</title>
46-
<para>
46+
<simpara>
4747
This will print where the host example.com is located.
48-
</para>
48+
</simpara>
4949
<programlisting role="php">
5050
<![CDATA[
5151
<?php

reference/geoip/functions/geoip-country-name-by-name.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
<methodparam><type>string</type><parameter>hostname</parameter></methodparam>
1313
</methodsynopsis>
1414

15-
<para>
15+
<simpara>
1616
The <function>geoip_country_name_by_name</function> function will return the
1717
full country name corresponding to a hostname or an IP address.
18-
</para>
18+
</simpara>
1919

2020
</refsect1>
2121
<refsect1 role="parameters">
@@ -24,28 +24,28 @@
2424
<varlistentry>
2525
<term><parameter>hostname</parameter></term>
2626
<listitem>
27-
<para>
27+
<simpara>
2828
The hostname or IP address whose location is to be looked-up.
29-
</para>
29+
</simpara>
3030
</listitem>
3131
</varlistentry>
3232
</variablelist>
3333
</refsect1>
3434
<refsect1 role="returnvalues">
3535
&reftitle.returnvalues;
36-
<para>
36+
<simpara>
3737
Returns the country name on success, or &false; if the address cannot
3838
be found in the database.
39-
</para>
39+
</simpara>
4040
</refsect1>
4141

4242
<refsect1 role="examples">
4343
&reftitle.examples;
4444
<example>
4545
<title>A <function>geoip_country_name_by_name</function> example</title>
46-
<para>
46+
<simpara>
4747
This will print where the host example.com is located.
48-
</para>
48+
</simpara>
4949
<programlisting role="php">
5050
<![CDATA[
5151
<?php

0 commit comments

Comments
 (0)