Skip to content

Commit a23fe5e

Browse files
committed
expect: fix XML to get remove of useless wrapping para tags
1 parent 4f31d4c commit a23fe5e

File tree

3 files changed

+185
-204
lines changed

3 files changed

+185
-204
lines changed

reference/expect/functions/expect-expectl.xml

Lines changed: 94 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 73fae4ee51b644b72028e610abefefced57c18ad Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 1ad8299bbc5c7d1b5dcf6883aaba0f7dbc4f116f Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
5-
<refentry xml:id="function.expect-expectl" xmlns="http://docbook.org/ns/docbook">
5+
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.expect-expectl">
66
<refnamediv>
77
<refname>expect_expectl</refname>
88
<refpurpose>プロセスの出力がパターンに一致する・指定した時間が経過する・
@@ -33,72 +33,70 @@
3333
</refsect1>
3434
<refsect1 role="parameters">
3535
&reftitle.parameters;
36-
<para>
37-
<variablelist>
38-
<varlistentry>
39-
<term><parameter>expect</parameter></term>
40-
<listitem>
41-
<para>
42-
事前に <function>expect_popen</function> でオープンした
43-
Expect ストリーム。
44-
</para>
45-
</listitem>
46-
</varlistentry>
47-
<varlistentry>
48-
<term><parameter>cases</parameter></term>
49-
<listitem>
50-
<para>
51-
expect case の配列。個々の expect case は数値添字の配列で、
52-
以下のような形式となります。
53-
<table>
54-
<title>Expect Case の配列</title>
55-
<tgroup cols="5">
56-
<thead>
57-
<row>
58-
<entry>添字</entry>
59-
<entry>値の型</entry>
60-
<entry>説明</entry>
61-
<entry>必須かどうか</entry>
62-
<entry>デフォルト値</entry>
63-
</row>
64-
</thead>
65-
<tbody>
66-
<row>
67-
<entry>0</entry>
68-
<entry>string</entry>
69-
<entry>ストリームからの出力との比較対象となるパターン。</entry>
70-
<entry>yes</entry>
71-
<entry></entry>
72-
</row>
73-
<row>
74-
<entry>1</entry>
75-
<entry>mixed</entry>
76-
<entry>パターンに一致した場合にこの関数が返す値。</entry>
77-
<entry>yes</entry>
78-
<entry></entry>
79-
</row>
80-
<row>
81-
<entry>2</entry>
82-
<entry>integer</entry>
83-
<entry>
84-
パターンの形式。
85-
<link linkend="constant.exp-glob"><constant>EXP_GLOB</constant></link>、
86-
<link linkend="constant.exp-exact"><constant>EXP_EXACT</constant></link>
87-
あるいは
88-
<link linkend="constant.exp-regexp"><constant>EXP_REGEXP</constant></link>
89-
のいずれかひとつです。
90-
</entry>
91-
<entry>no</entry>
92-
<entry><link linkend="constant.exp-glob"><constant>EXP_GLOB</constant></link></entry>
93-
</row>
94-
</tbody>
95-
</tgroup>
96-
</table>
97-
</para>
98-
</listitem>
99-
</varlistentry>
100-
</variablelist>
101-
</para>
36+
<variablelist>
37+
<varlistentry>
38+
<term><parameter>expect</parameter></term>
39+
<listitem>
40+
<para>
41+
事前に <function>expect_popen</function> でオープンした
42+
Expect ストリーム。
43+
</para>
44+
</listitem>
45+
</varlistentry>
46+
<varlistentry>
47+
<term><parameter>cases</parameter></term>
48+
<listitem>
49+
<para>
50+
expect case の配列。個々の expect case は数値添字の配列で、
51+
以下のような形式となります。
52+
<table>
53+
<title>Expect Case の配列</title>
54+
<tgroup cols="5">
55+
<thead>
56+
<row>
57+
<entry>添字</entry>
58+
<entry>値の型</entry>
59+
<entry>説明</entry>
60+
<entry>必須かどうか</entry>
61+
<entry>デフォルト値</entry>
62+
</row>
63+
</thead>
64+
<tbody>
65+
<row>
66+
<entry>0</entry>
67+
<entry>string</entry>
68+
<entry>ストリームからの出力との比較対象となるパターン。</entry>
69+
<entry>yes</entry>
70+
<entry/>
71+
</row>
72+
<row>
73+
<entry>1</entry>
74+
<entry>mixed</entry>
75+
<entry>パターンに一致した場合にこの関数が返す値。</entry>
76+
<entry>yes</entry>
77+
<entry/>
78+
</row>
79+
<row>
80+
<entry>2</entry>
81+
<entry>integer</entry>
82+
<entry>
83+
パターンの形式。
84+
<link linkend="constant.exp-glob"><constant>EXP_GLOB</constant></link>、
85+
<link linkend="constant.exp-exact"><constant>EXP_EXACT</constant></link>
86+
あるいは
87+
<link linkend="constant.exp-regexp"><constant>EXP_REGEXP</constant></link>
88+
のいずれかひとつです。
89+
</entry>
90+
<entry>no</entry>
91+
<entry><link linkend="constant.exp-glob"><constant>EXP_GLOB</constant></link></entry>
92+
</row>
93+
</tbody>
94+
</tgroup>
95+
</table>
96+
</para>
97+
</listitem>
98+
</varlistentry>
99+
</variablelist>
102100
</refsect1>
103101
<refsect1 role="returnvalues">
104102
&reftitle.returnvalues;
@@ -116,35 +114,32 @@
116114
</refsect1>
117115
<refsect1 role="changelog">
118116
&reftitle.changelog;
119-
<para>
120-
<informaltable>
121-
<tgroup cols="2">
122-
<thead>
123-
<row>
124-
<entry>&Version;</entry>
125-
<entry>&Description;</entry>
126-
</row>
127-
</thead>
128-
<tbody>
129-
<row>
130-
<entry>PECL expect 0.2.1</entry>
131-
<entry>
132-
バージョン 0.2.1 より前では、<parameter>match</parameter>
133-
パラメータに返されるのはマッチした文字列であり、
134-
部分文字列の配列ではありませんでした。
135-
</entry>
136-
</row>
137-
</tbody>
138-
</tgroup>
139-
</informaltable>
140-
</para>
117+
<informaltable>
118+
<tgroup cols="2">
119+
<thead>
120+
<row>
121+
<entry>&Version;</entry>
122+
<entry>&Description;</entry>
123+
</row>
124+
</thead>
125+
<tbody>
126+
<row>
127+
<entry>PECL expect 0.2.1</entry>
128+
<entry>
129+
バージョン 0.2.1 より前では、<parameter>match</parameter>
130+
パラメータに返されるのはマッチした文字列であり、
131+
部分文字列の配列ではありませんでした。
132+
</entry>
133+
</row>
134+
</tbody>
135+
</tgroup>
136+
</informaltable>
141137
</refsect1>
142138
<refsect1 role="examples">
143139
&reftitle.examples;
144-
<para>
145-
<example>
146-
<title><function>expect_expectl</function> の例</title>
147-
<programlisting role="php">
140+
<example>
141+
<title><function>expect_expectl</function> の例</title>
142+
<programlisting role="php">
148143
<![CDATA[
149144
<?php
150145
// ファイルをリモートホストにコピーします
@@ -178,20 +173,16 @@ fclose($stream);
178173
?>
179174
?>
180175
]]>
181-
</programlisting>
182-
</example>
183-
</para>
176+
</programlisting>
177+
</example>
184178
</refsect1>
185179
<refsect1 role="seealso">
186180
&reftitle.seealso;
187-
<para>
188-
<simplelist>
189-
<member><function>expect_popen</function></member>
190-
</simplelist>
191-
</para>
181+
<simplelist>
182+
<member><function>expect_popen</function></member>
183+
</simplelist>
192184
</refsect1>
193185
</refentry>
194-
195186
<!-- Keep this comment at the end of the file
196187
Local variables:
197188
mode: sgml

reference/expect/functions/expect-popen.xml

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: takagi Status: ready -->
4-
<refentry xml:id="function.expect-popen" xmlns="http://docbook.org/ns/docbook">
3+
<!-- EN-Revision: 1ad8299bbc5c7d1b5dcf6883aaba0f7dbc4f116f Maintainer: takagi Status: ready -->
4+
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.expect-popen">
55
<refnamediv>
66
<refname>expect_popen</refname>
77
<refpurpose>Bourne シェル経由でコマンドを実行し、プロセスへの PTY
@@ -20,18 +20,16 @@
2020
</refsect1>
2121
<refsect1 role="parameters">
2222
&reftitle.parameters;
23-
<para>
24-
<variablelist>
25-
<varlistentry>
26-
<term><parameter>command</parameter></term>
27-
<listitem>
28-
<para>
29-
実行するコマンド。
30-
</para>
31-
</listitem>
32-
</varlistentry>
33-
</variablelist>
34-
</para>
23+
<variablelist>
24+
<varlistentry>
25+
<term><parameter>command</parameter></term>
26+
<listitem>
27+
<para>
28+
実行するコマンド。
29+
</para>
30+
</listitem>
31+
</varlistentry>
32+
</variablelist>
3533
</refsect1>
3634
<refsect1 role="returnvalues">
3735
&reftitle.returnvalues;
@@ -44,10 +42,9 @@
4442
</refsect1>
4543
<refsect1 role="examples">
4644
&reftitle.examples;
47-
<para>
48-
<example>
49-
<title><function>expect_popen</function> の例</title>
50-
<programlisting role="php">
45+
<example>
46+
<title><function>expect_popen</function> の例</title>
47+
<programlisting role="php">
5148
<![CDATA[
5249
<?php
5350
// PHP.net の CVS リポジトリにログインします
@@ -57,20 +54,16 @@ fwrite ($stream, "phpfi\n");
5754
fclose ($stream);
5855
?>
5956
]]>
60-
</programlisting>
61-
</example>
62-
</para>
57+
</programlisting>
58+
</example>
6359
</refsect1>
6460
<refsect1 role="seealso">
6561
&reftitle.seealso;
66-
<para>
67-
<simplelist>
68-
<member><function>popen</function></member>
69-
</simplelist>
70-
</para>
62+
<simplelist>
63+
<member><function>popen</function></member>
64+
</simplelist>
7165
</refsect1>
7266
</refentry>
73-
7467
<!-- Keep this comment at the end of the file
7568
Local variables:
7669
mode: sgml

0 commit comments

Comments
 (0)