From 295957484cc7f54fb6055705b3b0ecb9c70bc135 Mon Sep 17 00:00:00 2001
From: Henson Choi <assam258@gmail.com>
Date: Sun, 28 Jun 2026 14:47:42 +0900
Subject: [PATCH] Restore line wrapping of pre-existing window clause
 documentation

The row pattern recognition docs patch re-wrapped two unrelated, pre-existing
paragraphs while inserting new text above them.  Restore their original
wrapping to keep the documentation diff minimal:

- advanced.sgml: the tutorial WINDOW/OVER paragraph
- ref/select.sgml: the "purpose of a WINDOW clause" paragraph
---
 doc/src/sgml/advanced.sgml   | 8 ++++----
 doc/src/sgml/ref/select.sgml | 3 +--
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/doc/src/sgml/advanced.sgml b/doc/src/sgml/advanced.sgml
index bdc552ad75f..c9d4e2ffc64 100644
--- a/doc/src/sgml/advanced.sgml
+++ b/doc/src/sgml/advanced.sgml
@@ -679,10 +679,10 @@ FROM stock
    <para>
     When a query involves multiple window functions, it is possible to write
     out each one with a separate <literal>OVER</literal> clause, but this is
-    duplicative and error-prone if the same windowing behavior is wanted for
-    several functions.  Instead, each windowing behavior can be named in
-    a <literal>WINDOW</literal> clause and then referenced
-    in <literal>OVER</literal>.  For example:
+    duplicative and error-prone if the same windowing behavior is wanted
+    for several functions.  Instead, each windowing behavior can be named
+    in a <literal>WINDOW</literal> clause and then referenced in <literal>OVER</literal>.
+    For example:
 
 <programlisting>
 SELECT sum(salary) OVER w, avg(salary) OVER w
diff --git a/doc/src/sgml/ref/select.sgml b/doc/src/sgml/ref/select.sgml
index be5ed814853..e0423cf5f91 100644
--- a/doc/src/sgml/ref/select.sgml
+++ b/doc/src/sgml/ref/select.sgml
@@ -1216,8 +1216,7 @@ DEFINE <replaceable class="parameter">definition_variable_name</replaceable> AS
 
    <para>
     The purpose of a <literal>WINDOW</literal> clause is to specify the
-    behavior of <firstterm>window functions</firstterm> appearing in the
-    query's
+    behavior of <firstterm>window functions</firstterm> appearing in the query's
     <link linkend="sql-select-list"><command>SELECT</command> list</link> or
     <link linkend="sql-orderby"><literal>ORDER BY</literal></link> clause.
     These functions
-- 
2.50.1 (Apple Git-155)

