Releases: nathanrpage97/lua-fort
Releases · nathanrpage97/lua-fort
v1.1.0 - Add Command Chaining
Add command chaining to shorten writing code
Old
ftable:print_ln("test")
ftable:print_ln("test2")
New
ftable:print_ln("test"):print_ln("test2")
v1.0.0 - Full Release
v1.0.0 (2022.1.8)
- [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
- "" -> {""}
- "|" -> {"",""}
Full Changelog: v0.3.0...v1.0.0
v0.3.0 - Last before v1 release
v0.3.0 (2021.12.26)
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
v0.2.0 - Class Module Support
Changes
-
[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 ftable.Example
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
v0.1.0 - Initial Release
Create an initial beta release to try. It tries to be a faithful wrapping around the libfort library.