aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroskarnp <oskarnp@users.noreply.github.com>2023-03-26 21:51:57 +0200
committeroskarnp <oskarnp@users.noreply.github.com>2023-03-26 21:51:57 +0200
commite2e98672bda84f64fc72f9602127e85097d0ffed (patch)
treeb9e353bb1c62a1d86afab548a5ac53945559c5ac
parent51f295caccd2c963c61d8e9252b2c37f7727ba51 (diff)
Fix typo
-rw-r--r--core/text/table/table.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/text/table/table.odin b/core/text/table/table.odin
index 44042cbce..df93ee44e 100644
--- a/core/text/table/table.odin
+++ b/core/text/table/table.odin
@@ -334,13 +334,13 @@ write_markdown_table :: proc(w: io.Writer, tbl: ^Table) {
switch cell.alignment {
case .Left:
io.write_byte(w, ':')
- write_byte_repeat(w, max(1, tbl.colw[col]-1, tbl.lpad, tbl.rpad), '-')
+ write_byte_repeat(w, max(1, tbl.colw[col]-1), '-')
case .Center:
io.write_byte(w, ':')
- write_byte_repeat(w, max(1, tbl.colw[col]-2, tbl.lpad, tbl.rpad), '-')
+ write_byte_repeat(w, max(1, tbl.colw[col]-2), '-')
io.write_byte(w, ':')
case .Right:
- write_byte_repeat(w, max(1, tbl.colw[col]-1, tbl.lpad, tbl.rpad), '-')
+ write_byte_repeat(w, max(1, tbl.colw[col]-1), '-')
io.write_byte(w, ':')
}
io.write_byte(w, '|')