mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 17:35:34 +00:00
chore(console) lNewLine -> lNewLine = ''
This commit is contained in:
parent
9e2c2ade82
commit
c7a515f925
1 changed files with 2 additions and 3 deletions
|
|
@ -106,12 +106,11 @@ var CloudCmd, Util, DOM, $, jqconsole;
|
|||
};
|
||||
|
||||
function addNewLine(pText){
|
||||
var lNewLine, n = pText && pText.length;
|
||||
var lNewLine = '',
|
||||
n = pText && pText.length;
|
||||
|
||||
if(n && pText[n-1] !== '\n')
|
||||
lNewLine = '\n';
|
||||
else
|
||||
lNewLine = '';
|
||||
|
||||
return pText + lNewLine;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue