From 61a6aaf48c35cc0078a9b551dcbbdcec5fd9fc99 Mon Sep 17 00:00:00 2001 From: Artemy Egorov Date: Wed, 14 Aug 2024 18:45:07 +0300 Subject: [PATCH] fix: table formatting --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/daleth/format.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b94a215..df92fee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -201,7 +201,7 @@ dependencies = [ [[package]] name = "dalet" -version = "1.0.0-pre.18" +version = "1.0.0-pre.19" dependencies = [ "ariadne", "bincode", diff --git a/Cargo.toml b/Cargo.toml index db94a98..866f051 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/daleth/format.rs b/src/daleth/format.rs index 41af3d6..8ab72cc 100644 --- a/src/daleth/format.rs +++ b/src/daleth/format.rs @@ -157,7 +157,7 @@ pub fn format<'src>(spanned_tokens: &Vec>>) -> 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) ),