- [Added] Many fort commands now return the fort object. This allows for chaining operations.
- [Fix] ftable metatable now links to fort instead of cfort module.
- [Added] negative indices for rows and columns
fort.set_cur_cell
fort.erase_range
fort.set_cell_prop
fort.set_cell_span
- [Fix] splitting of rows follows libfort methodology
- "" -> {""}
- "|" -> {"",""}
This should be the last minor release before v1 stable is released.
- [BREAKING]
row
andcol
arguments are now 1 indexed to follow lua convention. The following functions are affected:fort.cur_row
fort.cur_col
fort.set_cur_cell
fort.erase_range
fort.set_cell_prop
fort.set_cell_span
- [Updated] libfort updated 0.4.2 → 0.5.0
- [Added]
fort.col_count
(new in libfort 0.5.0) - [Changed] in lua ≥ 5.3 returns integer values instead of floats. Input still accepting of floats
- [Added]
ftable
implements the__tostring()
metamethod to return formatted table string.print(ftable:to_string())
→print(ftable)
- [Fixed]
fort.copy_table
now works correctly with utf8 tables - [Added]
fort.__call
alias offort.create_table
-
[Added]
fort.new
andfort.__call
aliases offort.create_table
-
[Added]
fort.copy
alias offort.copy_table
-
[Fixed]
fort.ftable
andfort.border_style
udata types to ensure the user passes the correct type -
[Added]
fort
is now a class module which means the function can be accessed from ftableExample
fort.printf(ftable, "test1|test2") == ftable:printf("test1|test2")
local fort = require "fort" local simple_table = fort() simple_table:print("test1|test2") print(simple_table:to_string())
-
[Fixed] error code now properly checked in
fort.write_ln
/fort.write