import strutils,parseutils,strfmt
echo "{:<10} {:<10} {:^10} {:>25}".fmt(1235,"Cat","Centered","Mouse")
gives me this (warnings are omitted)
Error: type mismatch: got (string, int, tuple[typ: FmtType, precision: int, width: int, fill: nil, align: FmtAlign, sign: FmtSign, baseprefix: bool, upcase: bool, comma: bool, arysep: nil])
but expected one of: strfmt.addformat(o: var Writer, x: GenericParam, fmt: Format) strfmt.addformat(o: var Writer, x: GenericParam, fmt: string) strfmt.addformat(s: var string, x: string) strfmt.addformat(f: File, x: string) strfmt.addformat(f: File, x: GenericParam, fmt: Format) strfmt.addformat(f: File, x: GenericParam, fmt: string) strfmt.addformat(s: Stream, x: string) strfmt.addformat(s: Stream, x: GenericParam, fmt: Format) strfmt.addformat(s: Stream, x: GenericParam, fmt: string)
on
Nim Compiler Version 0.10.3 (2015-04-05) [Linux: amd64] strfmt is at 0.6.1