maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r552768 - in /maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main: java/org/apache/maven/doxia/module/latex/ resources/org/apache/maven/doxia/module/latex/
Date Tue, 03 Jul 2007 09:46:35 GMT
Author: ltheussl
Date: Tue Jul  3 02:46:35 2007
New Revision: 552768

URL: http://svn.apache.org/viewvc?view=rev&rev=552768
Log:
DocumentStart has to come before preamble. Add some EOLs for readability.

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/java/org/apache/maven/doxia/module/latex/LatexSink.java
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/resources/org/apache/maven/doxia/module/latex/default_preamble.tex
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/resources/org/apache/maven/doxia/module/latex/default_sink_commands.tex

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/java/org/apache/maven/doxia/module/latex/LatexSink.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/java/org/apache/maven/doxia/module/latex/LatexSink.java?view=diff&rev=552768&r1=552767&r2=552768
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/java/org/apache/maven/doxia/module/latex/LatexSink.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/java/org/apache/maven/doxia/module/latex/LatexSink.java
Tue Jul  3 02:46:35 2007
@@ -102,12 +102,12 @@
 
     protected String getDocumentStart()
     {
-        return "\\documentclass[a4paper]{article}";
+        return "\\documentclass[a4paper]{article}" + EOL + EOL;
     }
 
     protected String getDocumentBegin()
     {
-        return "\\begin{document}";
+        return "\\begin{document}" + EOL + EOL;
     }
 
     protected String getDocumentEnd()
@@ -135,10 +135,10 @@
         {
             markup( sinkCommands );
 
-            markup( preamble );
-
             markup( getDocumentStart() );
 
+            markup( preamble );
+
             markup( getDocumentBegin() );
         }
     }
@@ -184,7 +184,7 @@
 
         if ( StringUtils.isNotEmpty( title ) )
         {
-            markup( "\\psectioni{" + title + "}" );
+            markup( "\\psectioni{" + title + "}" + EOL );
 
             title = null;
         }
@@ -205,7 +205,7 @@
 
         if ( StringUtils.isNotEmpty( title ) )
         {
-            markup( "\\psectionii{" + title + "}" );
+            markup( "\\psectionii{" + title + "}" + EOL );
 
             title = null;
         }
@@ -226,7 +226,7 @@
 
         if ( StringUtils.isNotEmpty( title ) )
         {
-            markup( "\\psectioniii{" + title + "}" );
+            markup( "\\psectioniii{" + title + "}" + EOL );
 
             title = null;
         }
@@ -247,7 +247,7 @@
 
         if ( StringUtils.isNotEmpty( title ) )
         {
-            markup( "\\psectioniv{" + title + "}" );
+            markup( "\\psectioniv{" + title + "}" + EOL );
 
             title = null;
         }
@@ -268,7 +268,7 @@
 
         if ( StringUtils.isNotEmpty( title ) )
         {
-            markup( "\\psectionv{" + title + "}" );
+            markup( "\\psectionv{" + title + "}" + EOL );
 
             title = null;
         }

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/resources/org/apache/maven/doxia/module/latex/default_preamble.tex
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/resources/org/apache/maven/doxia/module/latex/default_preamble.tex?view=diff&rev=552768&r1=552767&r2=552768
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/resources/org/apache/maven/doxia/module/latex/default_preamble.tex
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/resources/org/apache/maven/doxia/module/latex/default_preamble.tex
Tue Jul  3 02:46:35 2007
@@ -11,3 +11,4 @@
 \setlength{\pparskipamount}{1ex}
 \setlength{\parindent}{0pt}
 \setlength{\parskip}{\pparskipamount}
+

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/resources/org/apache/maven/doxia/module/latex/default_sink_commands.tex
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/resources/org/apache/maven/doxia/module/latex/default_sink_commands.tex?view=diff&rev=552768&r1=552767&r2=552768
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/resources/org/apache/maven/doxia/module/latex/default_sink_commands.tex
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-latex/src/main/resources/org/apache/maven/doxia/module/latex/default_sink_commands.tex
Tue Jul  3 02:46:35 2007
@@ -34,3 +34,4 @@
 \newcommand{\plink}[1]{\textcolor{plinkcolor}{#1}} \newcommand{\pitalic}[1]{\textit{#1}}
 \newcommand{\pbold}[1]{\textbf{#1}}
 \newcommand{\pmonospaced}[1]{\texttt{\small #1}}
+



Mime
View raw message