From c93b6a57d190651058f47e9a0caf9918960e7849 Mon Sep 17 00:00:00 2001 From: Youen Date: Sat, 3 Sep 2022 19:49:40 +0200 Subject: [PATCH] improved formatting of API result --- src/api/api_document.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/api_document.py b/src/api/api_document.py index fac4a50..4c89fbc 100644 --- a/src/api/api_document.py +++ b/src/api/api_document.py @@ -21,7 +21,7 @@ def build(): build_task = doc.build() build_task.join() - return build_task.get_output_str().replace('\n', '
') + return build_task.get_output_str().replace('\n', '
\n') @bp.route('/clone') def clone(): @@ -33,4 +33,4 @@ def clone(): clone_task = Document.clone(repo, branch, doc_name, source_dir) clone_task.join() - return clone_task.get_output_str().replace('\n', '
') + return clone_task.get_output_str().replace('\n', '
\n')