You are here: Foswiki>Tasks Web>Item6089 (08 Jan 2009, KwangErnLiew)Edit Attach

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

pencil
Priority: Normal
Current State: Closed
Released In: 1.0.0
Target Release: patch
Applies To: Engine
Component:
Branches:
Reported By: TWiki:Main.StanSwiercz
Waiting For:
Last Change By: KwangErnLiew
-- 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

ItemTemplate edit

Summary backslash at end of line inside verbatim and pre being used as line continuation
ReportedBy TWiki:Main.StanSwiercz
Codebase
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 patch
ReleasedIn 1.0.0
Topic revision: r13 - 08 Jan 2009, KwangErnLiew
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy