From c7375431146a17697ba13bbdacdbd9ca40104572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Thu, 21 Jan 2021 13:04:51 +0100 Subject: [PATCH] Remove commented lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/messages/TextualBody.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;