fix: table formatting

This commit is contained in:
Artemy Egorov 2024-08-14 18:45:07 +03:00
parent 66abb7e149
commit 61a6aaf48c
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View file

@ -201,7 +201,7 @@ dependencies = [
[[package]]
name = "dalet"
version = "1.0.0-pre.18"
version = "1.0.0-pre.19"
dependencies = [
"ariadne",
"bincode",

View file

@ -1,6 +1,6 @@
[package]
name = "dalet"
version = "1.0.0-pre.18"
version = "1.0.0-pre.19"
edition = "2021"
authors = ["artegoser"]
license = "MIT"

View file

@ -157,7 +157,7 @@ pub fn format<'src>(spanned_tokens: &Vec<Spanned<Token<'src>>>) -> String {
),
Token::TableSyntax(rows) => format!(
"{}\n{}\n{}\n",
prepend_indent("{{> table", current_indent),
prepend_indent("{> table", current_indent),
set_indent(&table_to_string(rows), current_indent + 1),
prepend_indent("}", current_indent)
),