Skip to content

Commit

Permalink
first replace space
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Apr 6, 2024
1 parent 5a5e280 commit 6a29fdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dargs/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ def print_html(self, _level=0, _last_one=True):
else:
buff.append(r"""<code class="dargs-code">""")
buff.append(
json.dumps(self.data, indent=2).replace(
json.dumps(self.data, indent=2)
.replace(" ", "&nbsp;")
.replace(
"\n", f"""</code>{linebreak}{indent}<code class="dargs-code">"""
)
)
Expand Down

0 comments on commit 6a29fdf

Please sign in to comment.