src/utilities/Codex.js
function formatLines(string, indentation) {
    indentation = indentation ? indentation : '';
    var formatted = '';
    const length = string.length;
    if (length > LINE_WIDTH) {
        for (var index = 0; index < length; index += LINE_WIDTH) {
            formatted += EOL + indentation;
            formatted += string.substring(index, index + LINE_WIDTH);
        }
        formatted += EOL;
    } else {
        formatted += string;
    }
    return formatted;
}
function formatLines(string, indentation) {
    indentation = indentation ? indentation : '';
    var formatted = '';
    const length = string.length;
    if (length > LINE_WIDTH) {
        for (var index = 0; index < length; index += LINE_WIDTH) {
            formatted += EOL + indentation;
            formatted += string.substring(index, index + LINE_WIDTH);
        }
        formatted += EOL;
    } else {
        formatted += string;
    }
    return formatted;
}
function formatLines ( string , indentation ) { indentation = indentation ? indentation : '' ; var formatted = '' ; const length = string . length ; if ( length > LINE_WIDTH ) { for ( var index = 0 ; index < length ; index += LINE_WIDTH ) { formatted += EOL + indentation ; formatted += string . substring ( index , index + LINE_WIDTH ) ; } formatted += EOL ; } else { formatted += string ; } return formatted ; }
This function returns a formatted version of a string with LINE_WIDTH characters per line.

@param {String} string The string to be formatted.
@param {String} indentation The string to be prepended to each line of the result.
@returns {String} The formatted string.
This function returns a formatted version of a string with LINE_WIDTH characters per line .