From 1097defa8f1d8fee28f760efa19cc4e48693ecbc Mon Sep 17 00:00:00 2001
From: John Terpstra <jht@samba.org>
Date: Tue, 5 Jul 2005 04:23:55 +0000
Subject: Widow/orphan handling (This used to be commit
 f405aa7c30f2e430448b4dae25960b4b31421d01)

---
 docs/xslt/latex/sambadoc.cls | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'docs/xslt')

diff --git a/docs/xslt/latex/sambadoc.cls b/docs/xslt/latex/sambadoc.cls
index 34b2d286e1..8fe0043bc9 100644
--- a/docs/xslt/latex/sambadoc.cls
+++ b/docs/xslt/latex/sambadoc.cls
@@ -218,6 +218,8 @@
 \vskip3pt\hrule\vskip3pt\hrule
 \vskip36pt\raggedright\Huge\sfbHuge\uppercase{#1}\par
 \nobreak\vskip70pt}}%\chaptersmark{#1}}
+\widowpenalty=1000
+\clubpenalty=1000
 
 %------------------------ section -----------------------------------
 \def\section{\@startsection{section}{1}{\z@}{-3.5ex plus-1ex
-- 
cgit