SID-00214: Twisty content in a table
| Status: |
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
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.