From 3b10b4cdf36a0d7c0ea387899fe5c0f489a30cbf Mon Sep 17 00:00:00 2001 From: Natalia Smirnova Date: Mon, 27 Nov 2017 10:44:30 +0300 Subject: [PATCH] Remove unnecessary \n from text --- src/Miew.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Miew.js b/src/Miew.js index 09504e79..cf56ba92 100644 --- a/src/Miew.js +++ b/src/Miew.js @@ -2476,21 +2476,21 @@ Miew.prototype._updateInfoPanel = function() { aName = an.getString(); } var location = (atom._location !== 32) ? String.fromCharCode(atom._location) : ''; // 32 is code of white-space - secondLine = `${atom.element.fullName} #${atom._serial}${location}: - ${residue._chain._name}.${residue._type._name}${residue._sequence}${residue._icode.trim()}.`; + secondLine = `${atom.element.fullName} #${atom._serial}${location}: \ + ${residue._chain._name}.${residue._type._name}${residue._sequence}${residue._icode.trim()}.`; if (typeof aName === 'string') { // add atom name to second line in plain text form secondLine += aName; } - coordLine = `Coord: (${atom._position.x.toFixed(2).toString()}, - ${atom._position.y.toFixed(2).toString()}, + coordLine = `Coord: (${atom._position.x.toFixed(2).toString()},\ + ${atom._position.y.toFixed(2).toString()},\ ${atom._position.z.toFixed(2).toString()})`; } else if (this._lastPick instanceof Residue) { residue = this._lastPick; - secondLine = `${residue._type._fullName}: + secondLine = `${residue._type._fullName}: \ ${residue._chain._name}.${residue._type._name}${residue._sequence}${residue._icode.trim()}`; } else if (this._lastPick instanceof Chain) { secondLine = `chain ${this._lastPick._name}`;