Skip to content

Commit

Permalink
Fix: indentation in fastn
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpita-Jaiswal authored and amitu committed Dec 29, 2023
1 parent 04b2d08 commit f3b51eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ftd/src/p1/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ fn trim_body(s: &str) -> String {
}
value.push(trimmed_line);
}
value.join("\n")
value.join("\n").trim_end().to_string()
}

fn remove_inline_comments(line: &str) -> String {
Expand Down
2 changes: 1 addition & 1 deletion ftd/t/p1/07-more-complex.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"line_number": 0,
"key": "code",
"kind": null,
"value": " -- import: fastn-community.github.io/bling/chat\n\n-- chat.message-left: Hello World! πŸ˜€\n\n-- chat.message-left: I'm Nandhini, a freelance\ncontent writer.\n\n-- chat.message-left: Fun fact: I built this\nentire page with fastn! πŸš€ It's that easy!\n",
"value": " -- import: fastn-community.github.io/bling/chat\n\n-- chat.message-left: Hello World! πŸ˜€\n\n-- chat.message-left: I'm Nandhini, a freelance\ncontent writer.\n\n-- chat.message-left: Fun fact: I built this\nentire page with fastn! πŸš€ It's that easy!",
"condition": null,
"access_modifier": "Public",
"source": "Body"
Expand Down

0 comments on commit f3b51eb

Please sign in to comment.