From 7efba7926f791b88afb69da2f1c70456a396392b Mon Sep 17 00:00:00 2001
From: =?utf8?q?Andr=C3=A9=20Malo?= <nd@apache.org>
Date: Mon, 3 Feb 2014 13:34:53 +0000
Subject: [PATCH] put indexes in pdf where they were planned.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1563888 13f79535-47bb-0310-9956-ffa450edef68
---
 docs/manual/style/latex/latex.xsl | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/docs/manual/style/latex/latex.xsl b/docs/manual/style/latex/latex.xsl
index 89ed4f3bc0..e7c1fcfee6 100644
--- a/docs/manual/style/latex/latex.xsl
+++ b/docs/manual/style/latex/latex.xsl
@@ -143,12 +143,14 @@ Server Documentation Project.  More information is available at
   <xsl:apply-templates select="title" mode="printcat"/>
   <xsl:text>}
 </xsl:text>
-    <xsl:apply-templates/>
+    <xsl:apply-templates />
     <xsl:if test="@id = 'modules'">
-        <xsl:text>\include{mod/index}</xsl:text>&lf;
-        <xsl:apply-templates select="document($allmodules)/modulefilelist" />
         <xsl:text>\include{mod/module-dict}</xsl:text>&lf;
         <xsl:text>\include{mod/directive-dict}</xsl:text>&lf;
+        <xsl:apply-templates select="document($allmodules)/modulefilelist" />
+    </xsl:if>
+    <xsl:if test="@id = 'index'">
+        <xsl:text>\include{mod/index}</xsl:text>&lf;
         <xsl:text>\include{mod/quickreference}</xsl:text>&lf;
     </xsl:if>
 </xsl:for-each>
-- 
2.40.0