Skip to content

Commit

Permalink
Revert "[ui](profile) Do not do profile format in the FE (apache#34757)…
Browse files Browse the repository at this point in the history
…" (apache#35308)

This reverts commit 705ce96.
  • Loading branch information
Mryange authored May 24, 2024
1 parent c53d3ed commit 905c836
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public Object profile(@PathVariable(value = ID) String id) {
if (profile == null) {
return ResponseEntityBuilder.okWithCommonError("ID " + id + " does not exist");
}
profile = profile.replaceAll("\n", "</br>");
profile = profile.replaceAll(" ", "&nbsp;&nbsp;");
return ResponseEntityBuilder.ok(profile);
}

Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/query-profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default function QueryProfile(params: any) {
{profile ? (
<div
ref={container}
style={{ background: '#f9f9f9', padding: '20px', whiteSpace: 'pre-wrap', wordSpacing: '4px' }}
style={{ background: '#f9f9f9', padding: '20px' }}
>
{/* {profile} */}
</div>
Expand Down

0 comments on commit 905c836

Please sign in to comment.