Tags:
create new tag
view all tags

SID-00214: Twisty content in a table

Status: Answered Answered TWiki version: Perl version:
Category: TwistyPlugin Server OS: Last update: 16 years ago

Hi,

I want to add some twisty content inside a table. So I write:

|*Heading 1*|*Heading 2*|*Heading 3*|
| Text | Text |%TWISTY{}%my twisty content%ENDTWISTY%|

The problem is when I save it the text and the twisty content is outside the table. Would be nice if anyone could inform me about what is the problem here.

Thanks a lot!

-- EnochRoot - 23 Mar 2009

Discussion and Answer

I believe this is a bug in the latest TwistyPlugin. It introduces a newline, which break tables if put into a TWiki table cell.

Test:

Heading 1 Heading 2 Heading 3
Text Text More... Close my twisty content

-- PeterThoeny - 23 Mar 2009

Yes, confirmed with above example. If you look at the raw HTML of this page you can see that there is a newline between two spans:

<span class="twistyPlugin twikiMakeVisibleInline">
 <span id="twistyIdSupportSID-002141show" ...

The plugin needs to be fixed.

-- PeterThoeny - 23 Mar 2009

I filed TWikibug:Item6220 to track this.

-- PeterThoeny - 24 Mar 2009

And fixed:

Index: lib/TWiki/Plugins/TwistyPlugin.pm
===================================================================
--- lib/TWiki/Plugins/TwistyPlugin.pm   (revision 17852)
+++ lib/TWiki/Plugins/TwistyPlugin.pm   (working copy)
@@ -410,7 +410,7 @@
 
 sub _wrapInButtonHtml {
     my ( $text, $mode ) = @_;
-    return _wrapInContainerHideIfNoJavascripOpen($mode) . "\n" . $text
+    return _wrapInContainerHideIfNoJavascripOpen($mode) . " " . $text
       . _wrapInContainerDivIfNoJavascripClose($mode);
 }
 
@@ -421,7 +421,7 @@
 
 sub _wrapInContentHtmlClose {
     my ($mode) = shift;
-    return "</$mode>\n<!--/twistyPlugin-->";
+    return "</$mode> <!--/twistyPlugin-->";
 }
 
 sub _wrapInContainerHideIfNoJavascripOpen {

-- PeterThoeny - 24 Mar 2009

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Twisty content in a table
SupportCategory TwistyPlugin
TWiki version

Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2009-03-24 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.