Package: didiwiki / 0.5-13

30_preformatted.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
From: Neil Stockbridge <neil@dist.ro>
Subject: Removes the double newlines in preformatted text


--- didiwiki-orig/didiwiki-0.5/src/wiki.c	2009-06-01 16:16:50.000000000 -0300
+++ didiwiki-0.5/src/wiki.c	2009-06-01 15:48:16.000000000 -0300
@@ -249,7 +249,7 @@
       if (pre_on && !isspace(*line) && *line != '\0')
 	{
 	  /* close any preformatting if already on*/
-	  http_response_printf(res, "\n</pre>\n") ;
+	  http_response_printf(res, "</pre>\n") ;
 	  pre_on = 0;
 	}