hledger-lib-1.19.1: A reusable library providing the core functionality of hledger

Safe HaskellNone
LanguageHaskell2010

Text.Tabular.AsciiWide

Description

Text.Tabular.AsciiArt from tabular-0.2.2.7, modified to treat wide characters as double width.

Synopsis

Documentation

render Source #

Arguments

:: Bool

pretty tables

-> (rh -> String) 
-> (ch -> String) 
-> (a -> String) 
-> Table rh ch a 
-> String 

for simplicity, we assume that each cell is rendered on a single line

renderColumns Source #

Arguments

:: Bool

pretty

-> [Int]

max width for each column

-> Header String 
-> String 

We stop rendering on the shortest list!

renderHLine Source #

Arguments

:: VPos 
-> Bool

pretty

-> [Int]

width specifications

-> Header String 
-> Properties 
-> [String] 

data VPos Source #

Constructors

VT 
VM 
VB 

data HPos Source #

Constructors

HL 
HM 
HR