Lines Matching full:spaces
779 // Replace two or more sequential spaces with leaving last space untouched.
782 var spaces = '';
785 spaces += sh.config.space;
787 return spaces + ' ';
791 // leading spaces aren't included.
798 var spaces = '';
802 spaces = s;
807 return spaces;
809 return spaces + '<code class="' + css + '">' + line + '</code>';
833 * Replaces tabs with spaces.
837 * @return {String} Returns code with all tabs replaces by spaces.
850 * Replaces tabs with smart spaces.
853 * @param {Number} tabSize Number of spaces in a column.
854 * @return {String} Returns code with all tabs replaces with roper amount of spaces.
860 spaces = ''
863 // Create a string with 1000 spaces to copy spaces from...
866 spaces += ' '; // 20 spaces * 50
868 // This function inserts specified amount of spaces in the string
873 + spaces.substr(0, count)
890 // calculate the amount of spaces we need to insert.
891 var spaces = tabSize - pos % tabSize;
892 line = insertSpaces(line, pos, spaces);
1462 spaces = null,
1468 spaces = indent[0].toString();
1469 line = line.substr(spaces.length);
1470 spaces = spaces.replace(' ', sh.config.space);
1481 (spaces != null ? '<code class="' + brushName + ' spaces">' + spaces + '</code>' : '') + line
1579 // replace tabs with spaces