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
--
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