Subject: didiwiki: preformatted block runs on
Package: didiwiki
Version: 0.5-3
Severity: minor
Tags: patch

*** Please type your report below this line ***

The preformatted block for pre-formatted text runs on, so this wiki
snippet:

 pre1
 pre2

normal-text

..would result in two blank lines of pre-formatted text following pre1
and pre2 before the closing </pre> tag.

diff -ur didiwiki-0.5/src/wiki.c didiwiki-0.5.1/src/wiki.c
--- didiwiki-0.5/src/wiki.c     2006-05-18 13:44:16.254507493 +1200
+++ didiwiki-0.5.1/src/wiki.c   2006-05-18 13:38:27.000000000 +1200
@@ -246,10 +246,10 @@
        *  process any initial wiki chars at line beginning 
        */
 
-      if (pre_on && !isspace(*line) && *line != '\0')
+      if (pre_on && !isspace(*line) )
        {
          /* close any preformatting if already on*/
-         http_response_printf(res, "\n</pre>\n") ;
+         http_response_printf(res, "</pre>\n") ;
          pre_on = 0;
        }


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.9-moon
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages didiwiki depends on:
ii  libc6                 2.3.2.ds1-22sarge3 GNU C Library: Shared libraries an

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to