(options)
| 32532 | |
| 32533 | module.exports = XMLWriterBase = (function() { |
| 32534 | function XMLWriterBase(options) { |
| 32535 | var key, ref, ref1, ref2, ref3, ref4, ref5, ref6, value; |
| 32536 | options || (options = {}); |
| 32537 | this.pretty = options.pretty || false; |
| 32538 | this.allowEmpty = (ref = options.allowEmpty) != null ? ref : false; |
| 32539 | if (this.pretty) { |
| 32540 | this.indent = (ref1 = options.indent) != null ? ref1 : ' '; |
| 32541 | this.newline = (ref2 = options.newline) != null ? ref2 : '\n'; |
| 32542 | this.offset = (ref3 = options.offset) != null ? ref3 : 0; |
| 32543 | this.dontprettytextnodes = (ref4 = options.dontprettytextnodes) != null ? ref4 : 0; |
| 32544 | } else { |
| 32545 | this.indent = ''; |
| 32546 | this.newline = ''; |
| 32547 | this.offset = 0; |
| 32548 | this.dontprettytextnodes = 0; |
| 32549 | } |
| 32550 | this.spacebeforeslash = (ref5 = options.spacebeforeslash) != null ? ref5 : ''; |
| 32551 | if (this.spacebeforeslash === true) { |
| 32552 | this.spacebeforeslash = ' '; |
| 32553 | } |
| 32554 | this.newlinedefault = this.newline; |
| 32555 | this.prettydefault = this.pretty; |
| 32556 | ref6 = options.writer || {}; |
| 32557 | for (key in ref6) { |
| 32558 | if (!hasProp.call(ref6, key)) continue; |
| 32559 | value = ref6[key]; |
| 32560 | this[key] = value; |
| 32561 | } |
| 32562 | } |
| 32563 | |
| 32564 | XMLWriterBase.prototype.set = function(options) { |
| 32565 | var key, ref, value; |
nothing calls this directly
no outgoing calls
no test coverage detected