Browse Source

improved formatting of API result

master
Youen 2 years ago
parent
commit
c93b6a57d1
  1. 4
      src/api/api_document.py

4
src/api/api_document.py

@ -21,7 +21,7 @@ def build():
build_task = doc.build() build_task = doc.build()
build_task.join() build_task.join()
return build_task.get_output_str().replace('\n', '<br/>') return build_task.get_output_str().replace('\n', '<br/>\n')
@bp.route('/clone') @bp.route('/clone')
def clone(): def clone():
@ -33,4 +33,4 @@ def clone():
clone_task = Document.clone(repo, branch, doc_name, source_dir) clone_task = Document.clone(repo, branch, doc_name, source_dir)
clone_task.join() clone_task.join()
return clone_task.get_output_str().replace('\n', '<br/>') return clone_task.get_output_str().replace('\n', '<br/>\n')

Loading…
Cancel
Save