We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3320008 commit cdbb983Copy full SHA for cdbb983
src/stmt.rs
@@ -28,9 +28,9 @@ pub fn stmt(Json(args): Json<Vec<Value>>) -> FnResult<String> {
28
"{{
29
\"t\": \"Para\",
30
\"c\": [
31
- \"{}\"
+ {}
32
]
33
}},",
34
- text
+ text[0..text.len() - 1].to_string()
35
))
36
}
src/text.rs
@@ -24,5 +24,11 @@ pub fn text(Json(args): Json<Vec<Value>>) -> FnResult<String> {
24
25
26
};
27
- Ok(format!("{{\"t\": \"Str\", \"c\": \"{}\"}}", text))
+ Ok(format!(
+ "{{
+ \"t\": \"Str\",
+ \"c\": \"{}\"
+}},",
+ text
+ ))
0 commit comments