Tabletest

From John Bray Wiki
Jump to navigation Jump to search

Nowrap for particular lines

Cannot wrap cannot wrap can wrap
short and tidy
AAfhjkdfh dskl fhjlkah ljfhslfhkjhfljsalhljfhBB CCjksdh kajsh dklash lkdh asklDD kjh sjkhd lkjshldkhaslkdakLghgf hgf hfh fgh gh gf gh fg
EEjkdsh fljkdh fjkh jkgf lghjfd gkj hfdsjkf ksl hFF GGhgjf kdfhdfh kjd hghg hgf hfg f hgljkHH jkdsf hgh fgh fg hfg ldshf lkjsd ghg hgf hgf gfhfjs

nowrap for column headings, hoping it would apply to all of a column, but it doesn't

Cannot wrap cannot wrap can wrap
short and tidy
AAfhjkdfh dskl fhjlkah ljfhslfhkjhfljsalhljfhBB CCjksdh kajsh dklash lkdh asklDD kjh sjkhd lkjshldkhaslkdakLghgf hgf hfh fgh gh gf gh fg
EEjkdsh fljkdh fjkh jkgf lghjfd gkj hfdsjkf ksl hFF GGhgjf kdfhdfh kjd hghg hgf hfg f hgljkHH jkdsf hgh fgh fg hfg ldshf lkjsd ghg hgf hgf gfhfjs

Ideally apply to SimpleTables with their clearer syntax. Using SimpleTable.php with a modified function convertTable that applies nowrap template for all but last column.


                if ($col < sizeof($fields)-1) {
                  $wikitab .= $cbar . ' <span style="white-space: nowrap;">' . $field . "</span>\n";
                } else {
                  $wikitab .= $cbar . " " . $field . "\n";
                }
Cannot wrap cannot wrap can wrap
AAfhjkdfh dskl fhjlkah ljfhslfhkjhfljsalhljfhBB CCjksdh kajsh dklash lkdh asklDD kjh sjkhd lkjshldkhaslkdakLghgf hgf hfh fgh gh gf gh fg
EEjkdsh fljkdh fjkh jkgf lghjfd gkj hfdsjkf ksl hFF GGhgjf kdfhdfh kjd hghg hgf hfg f hgljkHH jkdsf hgh fgh fg hfg ldshf lkjsd ghg hgf hgf gfhfjs