Skip to content

Commit

Permalink
Remove unnecessary \n from text
Browse files Browse the repository at this point in the history
  • Loading branch information
NataliaDSmirnova committed Nov 27, 2017
1 parent 2e54f39 commit 3b10b4c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Miew.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 3b10b4c

Please sign in to comment.