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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jan 4 15:48:44 CET 2010


Author: felix
Date: 2010-01-04 15:48:42 +0100 (Mon, 04 Jan 2010)
New Revision: 6303

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/omp.c
Log:
In PDF report, enabled page-breaks in service/port per host overview
table. Initial commit, size issues still exists (e.g. table header
bigger than table).

* src/omp.c (print_report_latex): Use longtable environment instead of
tabularx environment when printing the service per host overview
table.


Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2010-01-04 14:26:56 UTC (rev 6302)
+++ trunk/openvas-manager/ChangeLog	2010-01-04 14:48:42 UTC (rev 6303)
@@ -1,5 +1,15 @@
 2010-01-04  Felix Wolfsteller <felix.wolfsteller at intevation.de>
 
+	In PDF report, enabled page-breaks in service/port per host overview
+	table. Initial commit, size issues still exists (e.g. table header
+	bigger than table).
+
+	* src/omp.c (print_report_latex): Use longtable environment instead of
+	tabularx environment when printing the service per host overview
+	table.
+
+2010-01-04  Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
 	In PDF report, enabled page-breaks in result overview table.
 
 	* src/omp.c (print_report_latex): Use longtable environment instead of

Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c	2010-01-04 14:26:56 UTC (rev 6302)
+++ trunk/openvas-manager/src/omp.c	2010-01-04 14:48:42 UTC (rev 6303)
@@ -3370,10 +3370,22 @@
       /* Print the result summary table. */
 
       fprintf (out,
-               "\\begin{tabular}{|l|l|}\n"
+               "\\begin{longtable}{|l|l|}\n"
                "\\hline\n"
                "\\rowcolor{openvas_report}Service (Port)&Threat Level\\\\\n"
-               "\\hline\n");
+               "\\hline\n"
+               "\\endfirsthead\n"
+               "\\multicolumn{2}{l}{\\hfill\\ldots continued from previous page \\ldots}\\\\\n"
+               "\\hline\n"
+               "\\rowcolor{openvas_report}Service (Port)&Threat Level\\\\\n"
+               "\\hline\n"
+               "\\endhead\n"
+               "\\hline\n"
+               "\\multicolumn{2}{l}{\\ldots continues on next page \\ldots}\\\\\n"
+               "\\endfoot\n"
+               "\\hline\n"
+               "\\endlastfoot\n"
+               );
 
       init_result_iterator (&results, report, host,
                             current_int_1,  /* First result. */
@@ -3402,7 +3414,7 @@
       if (last_port) g_free (last_port);
 
       fprintf (out,
-               "\\end{tabular}\n"
+               "\\end{longtable}\n"
                "\n"
                "%%\\subsection*{Security Issues and Fixes -- %s}\n\n",
                host_iterator_host (&hosts));



More information about the Openvas-commits mailing list