• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 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.

Item7465: Twisty Plugin interaction with verbatim tag

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TwistyPlugin Normal No Action Required   n/a  

Edit Form Data

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

Detail

In a page that has more than one TWISTY containing verbatim text the first twisty is handled properly. The second twisty acts as though the "twisted" text ends at the beginning of the embedded verbatim tag. For example, in the following text between the --cut here-- lines clicking on the second twisty shows and hides the phrase "pre-verbatim2" while the rest of the text is always displayed

--cut here--

Here is the first twisty:

pre-verbatim1
This is the body of the first twisty.
post-verbatim1

Here is the second twisty:

pre-verbatim2
This is the body of the second twisty.
post-verbatim2

--cut here--

This problem was first noticed when we upgraded from TWiki version 4.2 to 6.0 this past Friday.

We use twisties extensively and use the verbatim tag to ensure that the displayed SQL queries are formatted properly. I currently have no workaround for this problem but would accept one as eagerly as I would a solution.

This site is running TWiki version TWiki-6.0.0, Mon, 14 Oct 2013, build 26523, Plugin API version 6.00
TwistyPlugin (2013-03-22, $Rev: 25508 (2013-03-23) $)

Twiki6 is built using the VM appliance from twiki.org:
TWiki: TWiki-6.0.0, Mon, 14 Oct 2013, build 26523, Plugin API version 6.00
plugins:
BackupRestorePlugin
CalendarPlugin
ColorPickerPlugin
CommentPlugin
DatePickerPlugin
EditTablePlugin
EmptyPlugin: NOT Enabled
HeadlinesPlugin
InterwikiPlugin
JQueryPlugin
NotificationPlugin
PreferencesPlugin: NOT Enabled
SetGetPlugin
SlideShowPlugin
SmiliesPlugin
SpreadSheetPlugin
TablePlugin
TagMePlugin
TinyMCEPlugin
TWikiNetSkinPlugin: NOT Enabled
TwistyPlugin
WatchlistPlugin: NOT Enabled
WysiwygPlugin

web server: httpd-2.2.15-29.el6.centos.x86_64
OS: Linux twiki6 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Perl: This is perl, v5.10.1

-- TWiki:Main/SteveGlassman - 2014-03-20

If you use verbatim or any other block element you have to use div mode, or you get illegal HTML that does odd stuff depending on the browser used. In your case use %TWISTY{ mode="div" }% ... %ENDTWISTY%.

-- TWiki:Main.PeterThoeny - 2014-03-20

I fixed above example, it works now properly.

-- TWiki:Main.PeterThoeny - 2014-03-20

ItemTemplate
Summary Twisty Plugin interaction with verbatim tag
ReportedBy TWiki:Main.SteveGlassman
Codebase 6.0.0
SVN Range

AppliesTo Extension
Component TwistyPlugin
Priority Normal
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2014-03-20 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback