mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Don't build HTML tables
`build` only recalculates length and width information, and this is not needed for HTML tables.
This commit is contained in:
@@ -198,10 +198,6 @@ build :: proc(tbl: ^Table) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
write_html_table :: proc(w: io.Writer, tbl: ^Table) {
|
write_html_table :: proc(w: io.Writer, tbl: ^Table) {
|
||||||
if tbl.dirty {
|
|
||||||
build(tbl)
|
|
||||||
}
|
|
||||||
|
|
||||||
io.write_string(w, "<table>\n")
|
io.write_string(w, "<table>\n")
|
||||||
if tbl.caption != "" {
|
if tbl.caption != "" {
|
||||||
io.write_string(w, "<caption>")
|
io.write_string(w, "<caption>")
|
||||||
|
|||||||
Reference in New Issue
Block a user