diff --git a/src/static/js/domline.js b/src/static/js/domline.js index 8756a285c..b1927b162 100644 --- a/src/static/js/domline.js +++ b/src/static/js/domline.js @@ -119,13 +119,8 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument) { if(listType.indexOf("number") < 0) { - if(!preHtml){ - preHtml = ''; - }else{ - preHtml += '' + postHtml; - } + preHtml += '' + postHtml; } else { @@ -133,23 +128,11 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument) if(start[1] == 1){ // if its the first one at this level? lineClass = lineClass + " " + "list-start-" + listType; // Add start class to DIV node } - if(!preHtml){ - preHtml = '
  1. '; - }else{ - preHtml += '
    1. '; - } + preHtml += '
      1. '; }else{ - if(!preHtml){ - preHtml = '
        1. '; // Handles pasted contents into existing lists - }else{ - preHtml += '
          1. '; // Handles pasted contents into existing lists - } - } - if(!postHtml){ - postHtml = '
          '; - }else{ - postHtml = '
        '; + preHtml += '
        1. '; // Handles pasted contents into existing lists } + postHtml += '
        '; } } processedMarker = true;