[Openvas-commits] r13024 - in trunk/openvas-libraries: . misc

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 13 23:24:35 CET 2012


Author: jan
Date: 2012-03-13 23:24:34 +0100 (Tue, 13 Mar 2012)
New Revision: 13024

Modified:
   trunk/openvas-libraries/ChangeLog
   trunk/openvas-libraries/misc/plugutils.c
Log:
* misc/plugutils.c (proto_post_wrapped): Ensure the newline
after the actual result text is always placed where it was before.
This lowers the number of changed results texts significantly.



Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog	2012-03-13 15:21:07 UTC (rev 13023)
+++ trunk/openvas-libraries/ChangeLog	2012-03-13 22:24:34 UTC (rev 13024)
@@ -1,3 +1,9 @@
+2012-03-13  Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
+
+	* misc/plugutils.c (proto_post_wrapped): Ensure the newline
+	after the actual result text is always placed where it was before.
+	This lowers the number of changed results texts significantly.
+
 2012-03-13  Michael Wiegand <michael.wiegand at greenbone.net>
 
 	* misc/plugutils.c (proto_post_wrapped): Add support for using the

Modified: trunk/openvas-libraries/misc/plugutils.c
===================================================================
--- trunk/openvas-libraries/misc/plugutils.c	2012-03-13 15:21:07 UTC (rev 13023)
+++ trunk/openvas-libraries/misc/plugutils.c	2012-03-13 22:24:34 UTC (rev 13024)
@@ -545,6 +545,7 @@
     return;
 
   action_str = g_string_new (action);
+  g_string_append (action_str, "\n");
 
   prepend_tags = get_preference (desc, "result_prepend_tags");
   append_tags = get_preference (desc, "result_append_tags");
@@ -602,7 +603,6 @@
           gchar *tag_prefix;
           gchar *tag_value;
 
-          g_string_append (action_str, "\n");
           while (tags[i] != NULL)
             {
               int j = 0;



More information about the Openvas-commits mailing list