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 = '- ';
- }else{
- preHtml += '
- ';
- }
+ preHtml += '
- ';
}else{
- if(!preHtml){
- preHtml = '
- '; // Handles pasted contents into existing lists
- }else{
- preHtml += '
- '; // Handles pasted contents into existing lists
- }
- }
- if(!postHtml){
- postHtml = '
';
- }else{
- postHtml = '
';
+ preHtml += '- '; // Handles pasted contents into existing lists
}
+ postHtml += '
';
}
}
processedMarker = true;