Skip to content

Commit bbb1a53

Browse files
github-actions[bot]ataibarkai
authored andcommitted
style: auto-fix formatting
1 parent 88d9435 commit bbb1a53

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

showcase/shell-dojo/src/components/code-block.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ export function CodeBlock({
7272
flex: 1,
7373
overflow: "auto",
7474
background: "#ffffff",
75-
fontFamily:
76-
"'Spline Sans Mono', 'SF Mono', Menlo, Consolas, monospace",
75+
fontFamily: "'Spline Sans Mono', 'SF Mono', Menlo, Consolas, monospace",
7776
fontSize: 13,
7877
lineHeight: 1.5,
7978
}}
@@ -130,8 +129,5 @@ export function CodeBlock({
130129
}
131130

132131
function escapeHtml(s: string): string {
133-
return s
134-
.replace(/&/g, "&")
135-
.replace(/</g, "&lt;")
136-
.replace(/>/g, "&gt;");
132+
return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
137133
}

0 commit comments

Comments
 (0)