]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix man page markup for <cmdsynopsis> with multiple variants
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 25 Sep 2010 06:57:09 +0000 (09:57 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 25 Sep 2010 13:47:58 +0000 (16:47 +0300)
Command synopses using <cmdsynopsis> with multiple variants previously used
<sbr> to break lines between variants.  The new man page toolchain introduced
in 9.0 makes a mess out of that, and that markup was probably wrong all along,
because <sbr> is supposed to break lines within a synopsis, not between them.
So fix that by using multiple <cmdsynopsis> elements inside <refsynopsisdiv>.

backpatched to 9.0

doc/src/sgml/ref/clusterdb.sgml
doc/src/sgml/ref/createlang.sgml
doc/src/sgml/ref/droplang.sgml
doc/src/sgml/ref/pg_ctl-ref.sgml
doc/src/sgml/ref/reindexdb.sgml
doc/src/sgml/ref/vacuumdb.sgml

index f9b4c7a8c08d7a3bdd9034f8fe1b4d6c22d77110..56683203d0c77620487291968cf7150b42e78bf2 100644 (file)
@@ -26,7 +26,9 @@ PostgreSQL documentation
    <group><arg>--verbose</arg><arg>-v</arg></group>
    <arg>--table | -t <replaceable>table</replaceable> </arg>
    <arg><replaceable>dbname</replaceable></arg>
-   <sbr>
+  </cmdsynopsis>
+
+  <cmdsynopsis>
    <command>clusterdb</command>
    <arg rep="repeat"><replaceable>connection-option</replaceable></arg>
    <group><arg>--verbose</arg><arg>-v</arg></group>
index eef50e2e465d4cd298d5c5e47177c9108028d08b..e21b64bf8a7e0c738ac3ae018554137bd9407aa2 100644 (file)
@@ -25,7 +25,9 @@ PostgreSQL documentation
    <arg rep="repeat"><replaceable>connection-option</replaceable></arg>
    <arg choice="plain"><replaceable>langname</replaceable></arg>
    <arg><replaceable>dbname</replaceable></arg>
-   <sbr>
+  </cmdsynopsis>
+
+  <cmdsynopsis>
    <command>createlang</command>
    <arg rep="repeat"><replaceable>connection-option</replaceable></arg>
    <group choice="plain"><arg>--list</arg><arg>-l</arg></group>
index f455b5643198c2310e5e4b9477c9ee219f69cc17..6ff132324508b1053f565d289f0150128816f1f7 100644 (file)
@@ -25,7 +25,9 @@ PostgreSQL documentation
    <arg rep="repeat"><replaceable>connection-option</replaceable></arg>
    <arg choice="plain"><replaceable>langname</replaceable></arg>
    <arg><replaceable>dbname</replaceable></arg>
-   <sbr>
+  </cmdsynopsis>
+
+  <cmdsynopsis>
    <command>droplang</command>
    <arg rep="repeat"><replaceable>connection-option</replaceable></arg>
    <group choice="plain"><arg>--list</arg><arg>-l</arg></group>
index 6eaa950c1e32cb6abfc36275ab7869a6bba7423e..196f08fa5f6966feacb5502e83d229e7f4147af2 100644 (file)
@@ -21,14 +21,14 @@ PostgreSQL documentation
 
  <refsynopsisdiv>
   <cmdsynopsis>
-
    <command>pg_ctl</command>
    <arg choice="plain">init[db]</arg>
    <arg>-s</arg>
    <arg>-D <replaceable>datadir</replaceable></arg>
    <arg>-o <replaceable>options</replaceable></arg>
-   <sbr>
+  </cmdsynopsis>
 
+  <cmdsynopsis>
    <command>pg_ctl</command>
    <arg choice="plain">start</arg>
    <arg>-w</arg>
@@ -39,8 +39,9 @@ PostgreSQL documentation
    <arg>-o <replaceable>options</replaceable></arg>
    <arg>-p <replaceable>path</replaceable></arg>
    <arg>-c</arg>
-   <sbr>
+  </cmdsynopsis>
 
+  <cmdsynopsis>
    <command>pg_ctl</command>
    <arg choice="plain">stop</arg>
    <arg>-W</arg>
@@ -54,8 +55,9 @@ PostgreSQL documentation
        <arg>i[mmediate]</arg>
      </group>
    </arg>
-   <sbr>
+  </cmdsynopsis>
 
+  <cmdsynopsis>
    <command>pg_ctl</command>
    <arg choice="plain">restart</arg>
    <arg>-w</arg>
@@ -71,25 +73,29 @@ PostgreSQL documentation
      </group>
    </arg>
    <arg>-o <replaceable>options</replaceable></arg>
-   <sbr>
+  </cmdsynopsis>
 
+  <cmdsynopsis>
    <command>pg_ctl</command>
    <arg choice="plain">reload</arg>
    <arg>-s</arg>
    <arg>-D <replaceable>datadir</replaceable></arg>
-   <sbr>
+  </cmdsynopsis>
 
+  <cmdsynopsis>
    <command>pg_ctl</command>
    <arg choice="plain">status</arg>
    <arg>-D <replaceable>datadir</replaceable></arg>
-   <sbr>
+  </cmdsynopsis>
 
+  <cmdsynopsis>
    <command>pg_ctl</command>
    <arg choice="plain">kill</arg>
    <arg><replaceable>signal_name</replaceable></arg>
    <arg><replaceable>process_id</replaceable></arg>
-   <sbr>
+  </cmdsynopsis>
 
+  <cmdsynopsis>
    <command>pg_ctl</command>
    <arg choice="plain">register</arg>
    <arg>-N <replaceable>servicename</replaceable></arg>
@@ -99,12 +105,12 @@ PostgreSQL documentation
    <arg>-w</arg>
    <arg>-t <replaceable>seconds</replaceable></arg>
    <arg>-o <replaceable>options</replaceable></arg>
-   <sbr>
+  </cmdsynopsis>
 
+  <cmdsynopsis>
    <command>pg_ctl</command>
    <arg choice="plain">unregister</arg>
    <arg>-N <replaceable>servicename</replaceable></arg>
-
   </cmdsynopsis>
  </refsynopsisdiv>
 
index dcc34fb61a95f9293f17f647b17e7facbe26b6f6..05ba8b66e1677f8c0b181d4e64cb18a626417bf6 100644 (file)
@@ -26,11 +26,15 @@ PostgreSQL documentation
    <arg>--table | -t <replaceable>table</replaceable> </arg>
    <arg>--index | -i <replaceable>index</replaceable> </arg>
    <arg><replaceable>dbname</replaceable></arg>
-   <sbr>
+  </cmdsynopsis>
+
+  <cmdsynopsis>
    <command>reindexdb</command>
    <arg rep="repeat"><replaceable>connection-option</replaceable></arg>
    <arg>--all | -a</arg>
-   <sbr>
+  </cmdsynopsis>
+
+  <cmdsynopsis>
    <command>reindexdb</command>
    <arg rep="repeat"><replaceable>connection-option</replaceable></arg>
    <arg>--system | -s</arg>
index c6f576772e51ac9ecb05728f82ad9e988ef1e033..308508f62b48505c25257beb3143bb81d2c09902 100644 (file)
@@ -32,7 +32,9 @@ PostgreSQL documentation
     <arg>( <replaceable class="parameter">column</replaceable> [,...] )</arg>
    </arg>
    <arg><replaceable>dbname</replaceable></arg>
-   <sbr>
+  </cmdsynopsis>
+
+  <cmdsynopsis>
    <command>vacuumdb</command>
    <arg rep="repeat"><replaceable>connection-option</replaceable></arg>
    <group><arg>--full</arg><arg>-f</arg></group>