mirror of
https://github.com/TxtDot/dalet-rs.git
synced 2024-11-24 17:46:20 +03:00
fix: table formatting
This commit is contained in:
parent
66abb7e149
commit
61a6aaf48c
3 changed files with 3 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -201,7 +201,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dalet"
|
name = "dalet"
|
||||||
version = "1.0.0-pre.18"
|
version = "1.0.0-pre.19"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ariadne",
|
"ariadne",
|
||||||
"bincode",
|
"bincode",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "dalet"
|
name = "dalet"
|
||||||
version = "1.0.0-pre.18"
|
version = "1.0.0-pre.19"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["artegoser"]
|
authors = ["artegoser"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
@ -157,7 +157,7 @@ pub fn format<'src>(spanned_tokens: &Vec<Spanned<Token<'src>>>) -> String {
|
||||||
),
|
),
|
||||||
Token::TableSyntax(rows) => format!(
|
Token::TableSyntax(rows) => format!(
|
||||||
"{}\n{}\n{}\n",
|
"{}\n{}\n{}\n",
|
||||||
prepend_indent("{{> table", current_indent),
|
prepend_indent("{> table", current_indent),
|
||||||
set_indent(&table_to_string(rows), current_indent + 1),
|
set_indent(&table_to_string(rows), current_indent + 1),
|
||||||
prepend_indent("}", current_indent)
|
prepend_indent("}", current_indent)
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Reference in a new issue