Skip to content

Commit

Permalink
merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
nashwaan committed Apr 25, 2017
2 parents 818a4d2 + 85632fa commit a4aab32
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/js2xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ function hasContent (element, options, skipText) {
case options.attributesKey:
break; // skip to next key
case options.cdataKey:
<<<<<<< HEAD
case options.doctypeKey:
=======
return false;
>>>>>>> origin/master
case options.commentKey:
case options.declarationKey:
return true;
Expand Down Expand Up @@ -147,8 +151,12 @@ function writeElementsCompact (element, options, depth, firstLine) {
case options.declarationKey: xml += writeDeclaration(element[options.declarationKey], options); break;
case options.attributesKey: case options.parentKey: break; // skip
case options.textKey: xml += writeText(element, options); break;
<<<<<<< HEAD
case options.cdataKey: xml += writeIndentation(options, depth, firstLine) + writeCdata(element, options); break;
case options.doctypeKey: xml += writeIndentation(options, depth, firstLine) + writeDoctype(element, options); break;
=======
case options.cdataKey: xml += writeCdata(element, options); break;
>>>>>>> origin/master
case options.commentKey: xml += writeIndentation(options, depth, firstLine) + writeComment(element, options); break;
default:
if (element[key] instanceof Array) {
Expand Down

0 comments on commit a4aab32

Please sign in to comment.