Jump to content

Topic on Extension talk:SimpleTable/Archive 2

Only allowing one column to wrap

1
Vicarage (talkcontribs)

In my attempts to have tables with columns not wrapping their text (See https://www.mediawiki.org/wiki/Topic:Vt0oqcj6dvqqyl6d), I came up with a solution for SimpleTable.php, a change to convertTable so only the last column wraps


                if ($col < sizeof($fields)-1) {
                  $wikitab .= $cbar . ' <span style="white-space: nowrap;">' . $field . "</span>\n";
                } else {
                  $wikitab .= $cbar . " " . $field . "\n";
                }
Reply to "Only allowing one column to wrap"