On Sat, May  4, 2013 at 11:00:26PM +0200, Erik Rijkers wrote:
> The attached patch breaks code-example into two lines.
> 
> In the pdf (A4) version this line is truncated by several words, making a 
> tutorial example
> incomprehensible.
> 
> (The line-break also shows up in the html vrsion but does not look 
> particularly ugly there)

Agreed.  I ended up splitting it into three lines;  applied patch
attached.

-- 
  Bruce Momjian  <br...@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +
diff --git a/doc/src/sgml/advanced.sgml b/doc/src/sgml/advanced.sgml
new file mode 100644
index 3c067d5..1e45511
*** a/doc/src/sgml/advanced.sgml
--- b/doc/src/sgml/advanced.sgml
*************** SELECT depname, empno, salary, avg(salar
*** 389,395 ****
      order in which the rows are output.)  Here is an example:
  
  <programlisting>
! SELECT depname, empno, salary, rank() OVER (PARTITION BY depname ORDER BY salary DESC) FROM empsalary;
  </programlisting>
  
  <screen>
--- 389,397 ----
      order in which the rows are output.)  Here is an example:
  
  <programlisting>
! SELECT depname, empno, salary,
!        rank() OVER (PARTITION BY depname ORDER BY salary DESC)
! FROM empsalary;
  </programlisting>
  
  <screen>
-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs

Reply via email to