[Openvas-commits] r5697 - in trunk/openvas-manager: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 23 22:27:16 CEST 2009


Author: jan
Date: 2009-10-23 22:27:15 +0200 (Fri, 23 Oct 2009)
New Revision: 5697

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/omp.c
Log:
* src/omp.c (print_report_latex): Better avoidance of
overlong pages.



Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-10-23 19:49:31 UTC (rev 5696)
+++ trunk/openvas-manager/ChangeLog	2009-10-23 20:27:15 UTC (rev 5697)
@@ -1,3 +1,8 @@
+2009-10-23  Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
+
+	* src/omp.c (print_report_latex): Better avoidance of
+	overlong pages.
+
 2009-10-23  Matthew Mundell <matthew.mundell at intevation.de>
 
 	Cleanup LSC package generation a bit.

Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c	2009-10-23 19:49:31 UTC (rev 5696)
+++ trunk/openvas-manager/src/omp.c	2009-10-23 20:27:15 UTC (rev 5697)
@@ -2437,8 +2437,7 @@
                        "\\subsubsection{%s}\n"
                        "\\label{port:%s %s}\n\n"
                        "\\begin{tabular}{l}\n"
-                       "\\begin{tabularx}{\\textwidth * 1}{|X|}\n"
-                       "\\hline\n",
+                       "\\begin{tabularx}{\\textwidth * 1}{|X|}\n",
                        result_iterator_port (&results),
                        host_iterator_host (&hosts),
                        result_iterator_port (&results));
@@ -2447,11 +2446,17 @@
             last_port = g_strdup (result_iterator_port (&results));
           severity = result_iterator_type (&results);
           fprintf (out,
+                   "\\hline\n"
                    "\\rowcolor%s%s\\\\\n"
                    "\\hline\n"
                    "%s\\\\\n"
                    "OID of test routine: %s\\\\\n"
-                   "\\hline\n",
+                   "\\hline\n"
+                   "\\end{tabularx}\n"
+                   "\\end{tabular}\n"
+                   "\n"
+                   "\\begin{tabular}{l}\n"
+                   "\\begin{tabularx}{\\textwidth * 1}{|X|}\n",
                    latex_severity_colour (severity),
                    latex_severity_heading (severity),
                    descr,



More information about the Openvas-commits mailing list