diff --git a/doc/src/sgml/ref/pg_receivexlog.sgml b/doc/src/sgml/ref/pg_receivexlog.sgml
index fad7470ee3516d1b007ef04eff14ca657d12d033..09ac964bf84130f579378412fb5e17ba3b8806c5 100644
--- a/doc/src/sgml/ref/pg_receivexlog.sgml
+++ b/doc/src/sgml/ref/pg_receivexlog.sgml
@@ -253,10 +253,9 @@ PostgreSQL documentation
    To stream the transaction log from the server at
    <literal>mydbserver</literal> and store it in the local directory
    <filename>/usr/local/pgsql/archive</filename>:
-   <screen>
-    <prompt>$</prompt> <userinput>pg_receivexlog -h mydbserver -D /home/pgbackup/archive</userinput>
-   </screen>
-  </para>
+<screen>
+<prompt>$</prompt> <userinput>pg_receivexlog -h mydbserver -D /home/pgbackup/archive</userinput>
+</screen></para>
  </refsect1>
 
  <refsect1>
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 9710e32dfbe44652beb6fea80cc9d7ceeaf54476..b8491015f4eb205d095fe4bcc5aaaef6a3cb1b39 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1017,8 +1017,7 @@ testdb=&gt;
         those object types.
         </para>
 
-        <para>
-        <literal>\dd</literal> displays descriptions for objects matching the
+        <para><literal>\dd</literal> displays descriptions for objects matching the
         <replaceable class="parameter">pattern</replaceable>, or of visible
         objects of the appropriate type if no argument is given.  But in either
         case, only objects that have a description are listed.
@@ -2302,8 +2301,7 @@ lo_import 152801
 <programlisting>
 testdb=&gt; <userinput>\setenv PAGER less</userinput>
 testdb=&gt; <userinput>\setenv LESS -imx4F</userinput>
-</programlisting>
-        </para>
+</programlisting></para>
         </listitem>
       </varlistentry>
 
diff --git a/doc/src/sgml/ref/set_transaction.sgml b/doc/src/sgml/ref/set_transaction.sgml
index 4327ca51a69defd473293f0a87023763376ac1cf..f0607296802a3ba3a083ef33d4b785d64e2d1853 100644
--- a/doc/src/sgml/ref/set_transaction.sgml
+++ b/doc/src/sgml/ref/set_transaction.sgml
@@ -235,8 +235,7 @@ SELECT pg_export_snapshot();
 <programlisting>
 BEGIN TRANSACTION ISOLATION LEVEL REPEATABLE READ;
 SET TRANSACTION SNAPSHOT '000003A1-1';
-</programlisting>
-  </para>
+</programlisting></para>
  </refsect1>
 
  <refsect1 id="R1-SQL-SET-TRANSACTION-3">