[html table format Ketil Malde **20080523113708] { hunk ./SNPCGI.hs 29 +-- replaces: alignCols . showCols +formatCols :: [String] -> [((Int,Char), [Char])] -> String +formatCols names cols = tabulate $ showCols names cols + where tabulate (h:rs) = table (tr th h ++ concatMap (tr td) rs) + table t = "\n"++t++"
" + th t = ""++t++"" + td t = ""++t++"" + tr :: (String -> String) -> [String] -> String + tr c cs = ""++concatMap c cs++"" + hunk ./SNPCGI.hs 43 - (alignCols $ showCols hs $ filterCols snp_columns $ enumerate (last ss) cols)++ "\n" + (formatCols hs $ filterCols snp_columns $ enumerate (last ss) cols)++ "\n" }