Tags:
create new tag
, view all tags

Bug: Tab characters get lost in a verbatim section

When using verbatim to render text as is the tab characters are eaten and converted to 3 spaces

Test case

This :

--- imap/message.c~   Fri Feb 27 18:44:55 2004
+++ imap/message.c   Tue Jul 13 11:41:50 2004
@@ -262,10 +262,6 @@
          /* We have been configured to reject all mail of this
             form. */
          if (!r) r = IMAP_MESSAGE_CONTAINS8BIT;
-          } else {
-         /* We have been configured to munge all mail of this
-            form. */
-         *p = 'X';
           }
       }
        }

Should render as is and not with tabs converted to spaces, because it prevents anyone to be able to cut'n'paste it into patch. It also renders the C code pretty badly as the indentation is broken.

PS: the thing I cut'n'pasted here is available here http://mat.cc/distfiles/patch-mat-imap::message.c as I believe what I just pasted will be eaten as well.

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: FreeBSD 4.9
Web server: Apache 2.0.50
Perl version: 5.8.5
Client OS: MS Windows XP
Web Browser: Firefox / IE6

-- MathieuArnold - 18 Aug 2004

Follow up

I was thinking that you could use a textarea for code that should be copied, but its content gets interpreted as twiki markup.

-- ArthurClemens - 18 Aug 2004

TWiki uses three spaces internally for tabs, some programmers use 4 spaces, some 8. There is no way to predict the number of spaces. Possibly with a TWiki.cfg setting?

-- PeterThoeny - 06 Sep 2004

Fix record

Topic revision: r4 - 06 Sep 2004 - 06:31:28 - PeterThoeny
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback