\n when inserting citation

This commit is contained in:
Swrup 2022-01-27 11:08:12 +01:00
parent c81815e1a5
commit d63ec44fba

View file

@ -10,7 +10,7 @@ let insert_quote post_id =
let content = Jv.get comment_textarea "value" in
let new_content =
Jv.call content "concat"
[| Jv.of_string " >>"; post_id; Jv.of_string " " |]
[| Jv.of_string "\n>>"; post_id; Jv.of_string " " |]
in
ignore @@ Jv.set comment_textarea "value" new_content;
Jv.undefined