mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
remote_runner: Don't break long lines
Breaking lines makes it harder to read and search the test output.
This commit is contained in:
parent
7d75e0ef8f
commit
713e57b451
1 changed files with 2 additions and 6 deletions
|
@ -102,12 +102,8 @@ $(() => {
|
||||||
|
|
||||||
const $console = $('#console');
|
const $console = $('#console');
|
||||||
const append = (text) => {
|
const append = (text) => {
|
||||||
const lines = text.split('\n')
|
// Indent each line.
|
||||||
// Break long lines into multiple lines:
|
const lines = text.split('\n').map((line) => ' '.repeat(level * 2) + line);
|
||||||
.map((line) => line.match(/.{1,100}/g))
|
|
||||||
.reduce((soFar, next) => soFar.concat(next), [])
|
|
||||||
// Indent each line:
|
|
||||||
.map((line) => ' '.repeat(level * 2) + line);
|
|
||||||
$console.append(document.createTextNode(`${lines.join('\\n')}\\n`));
|
$console.append(document.createTextNode(`${lines.join('\\n')}\\n`));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue