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