diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index 18f1302a4a..e0931df097 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -195,9 +195,7 @@ export default class TextualBody extends React.Component { } _addLineNumbers(pre) { - //const lineNumbers = document.createElement("span"); - //lineNumbers.className = "mx_EventTile_lineNumbers"; - pre.innerHTML = '' + pre.innerHTML + ''; + pre.innerHTML = '' + pre.innerHTML + ''; const lineNumbers = pre.getElementsByClassName("mx_EventTile_lineNumbers")[0]; // Calculate number of lines in pre const number = pre.innerHTML.split(/\n/).length;