diff --git a/frontend/components/CellInput.js b/frontend/components/CellInput.js index fb03a76ff3..ab6f6f6d91 100644 --- a/frontend/components/CellInput.js +++ b/frontend/components/CellInput.js @@ -1125,7 +1125,9 @@ const InputContextMenuItem = ({ contents, title, onClick, setOpen, tag }) => ` const StaticCodeMirrorFaker = ({ value }) => { - const lines = value.split("\n").map((line, i) => html`
${line}
`) + const lines = value + .split("\n") + .map((line, i) => html`
${line.length === 0 ? html`
` : line}
`) return html`