• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6089: backslash at end of line inside verbatim and pre being used as line continuation

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   n/a 4.2.4

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

-- TWiki:Main/StanSwiercz - 21 Oct 2008

We are just setting up our new wiki and when entering script code that has backslashes we found that things were going amiss.

For example if we add the following using raw edit:

<verbatim>
line 1\
line 2\
line 3
</verbatim>
<pre>
line 4 \
line 5 \
line 6
</pre>

It displays properly:

line 1\
line 2\
line 3

line 4 \
line 5 \
line 6

But if we then use "edit" instead of "raw edit" the backslashes are interpreted as line continuations and we end up with

line 1 line 2 line 3

line 4 line 5 line 6

Backslashes should be not interpreted inside a verbatim or a pre.

Thanks,

Stan

you should use the sticky tag to prevent the WYSIWYG editor to change it.

-- TWiki:Main.OlivierRaginel - 21 Oct 2008

If you mean

line 1  \
line 2  \
line 3

the backslashes are removed if "edit" is used, after a save and then "raw edit" I see

line 1   line 2   line 3

Stan

-- TWiki:Main.StanSwiercz - 22 Oct 2008

Sorry but the sticky's and verbatim were eaten I have placed a sticky tag followed by a verbatim tag then the 3 lines and then a close verbatim tag and close sticky tag.

-- TWiki:Main.StanSwiercz - 22 Oct 2008

'twas a bug.

Fixed in trunk and release branch.

-- CrawfordCurrie - 22 Oct 2008

Fixed the unit tests

-- CrawfordCurrie - 27 Oct 2008

Closing After Release 4.2.4

-- SopanShewale - 11 Dec 2008

ItemTemplate
Summary backslash at end of line inside verbatim and pre being used as line continuation
ReportedBy TWiki:Main.StanSwiercz
Codebase 4.2.3
SVN Range TWiki-5.0.0, Sun, 05 Oct 2008, build 17588
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:17679 TWikirev:17680 TWikirev:17701 TWikirev:17702
TargetRelease n/a
ReleasedIn 4.2.4
Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r12 - 2008-12-11 - SopanShewale
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback