Skip to content

Commit

Permalink
[FIX] formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Levitas committed Nov 17, 2023
1 parent a008def commit a8c4400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/showfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export default defineComponent({
);
})
.then((res) => {
const text = JSON.stringify(res.data, undefined, 4);
this.content = convert.toHtml(text);
// data from the BE will have newlines which informs indentation in the frontend
this.content = convert.toHtml(res.data);
})
.catch((err) => {
console.error(err);
Expand Down

0 comments on commit a8c4400

Please sign in to comment.