doc: Fix up spacing around verbatim DocBook elements
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 24 Apr 2024 10:26:19 +0000 (12:26 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 24 Apr 2024 10:26:19 +0000 (12:26 +0200)
doc/src/sgml/func.sgml
doc/src/sgml/ref/release_savepoint.sgml

index 92a0f49e6a15fe950856cd4509d0208681cc5e9b..ebcd936acb6425358f5b58af46ae02d7db5f1e25 100644 (file)
@@ -17725,28 +17725,28 @@ ERROR:  jsonpath member accessor can only be applied to an object
     The unwrapping behavior of lax mode can lead to surprising results. For
     instance, the following query using the <literal>.**</literal> accessor
     selects every <literal>HR</literal> value twice:
- <screen>
- <prompt>=&gt;</prompt> <userinput>select jsonb_path_query(:'json', 'lax $.**.HR');</userinput>
 jsonb_path_query
- ------------------
 73
 135
 73
 135
- </screen>
+<screen>
+<prompt>=&gt;</prompt> <userinput>select jsonb_path_query(:'json', 'lax $.**.HR');</userinput>
+ jsonb_path_query
+------------------
+ 73
+ 135
+ 73
+ 135
+</screen>
     This happens because the <literal>.**</literal> accessor selects both
     the <literal>segments</literal> array and each of its elements, while
     the <literal>.HR</literal> accessor automatically unwraps arrays when
     using lax mode. To avoid surprising results, we recommend using
     the <literal>.**</literal> accessor only in strict mode. The
     following query selects each <literal>HR</literal> value just once:
- <screen>
- <prompt>=&gt;</prompt> <userinput>select jsonb_path_query(:'json', 'strict $.**.HR');</userinput>
 jsonb_path_query
- ------------------
 73
 135
- </screen>
+<screen>
+<prompt>=&gt;</prompt> <userinput>select jsonb_path_query(:'json', 'strict $.**.HR');</userinput>
+ jsonb_path_query
+------------------
+ 73
+ 135
+</screen>
    </para>
 
    <para>
index e9fc6e5d1c84527ef3c2f86cd48483d92d5dbfeb..6c616aaf999e7910205ecd34a45a9a35f79415be 100644 (file)
@@ -116,8 +116,8 @@ BEGIN;
    now only choose one of these two commands, since all other commands
    will be ignored:
 <programlisting>
-   ROLLBACK;
-   ROLLBACK TO SAVEPOINT sp1;
+ROLLBACK;
+ROLLBACK TO SAVEPOINT sp1;
 </programlisting>
    Choosing <command>ROLLBACK</command> will abort everything, including
    value 1, whereas <command>ROLLBACK TO SAVEPOINT sp1</command> will retain