|
1 | 1 | 'use strict';
|
2 | 2 |
|
3 |
| -var EXTEND = require('whet.extend'), |
| 3 | +var EOL = require('os').EOL, |
| 4 | + EXTEND = require('whet.extend'), |
4 | 5 | textElem = require('../../plugins/_collections.js').elemsGroups.textContent.concat('title');
|
5 | 6 |
|
6 | 7 | var defaults = {
|
@@ -69,14 +70,14 @@ function JS2SVG(config) {
|
69 | 70 | }
|
70 | 71 |
|
71 | 72 | if (this.config.pretty) {
|
72 |
| - this.config.doctypeEnd += '\n'; |
73 |
| - this.config.procInstEnd += '\n'; |
74 |
| - this.config.commentEnd += '\n'; |
75 |
| - this.config.cdataEnd += '\n'; |
76 |
| - this.config.tagShortEnd += '\n'; |
77 |
| - this.config.tagOpenEnd += '\n'; |
78 |
| - this.config.tagCloseEnd += '\n'; |
79 |
| - this.config.textEnd += '\n'; |
| 73 | + this.config.doctypeEnd += EOL; |
| 74 | + this.config.procInstEnd += EOL; |
| 75 | + this.config.commentEnd += EOL; |
| 76 | + this.config.cdataEnd += EOL; |
| 77 | + this.config.tagShortEnd += EOL; |
| 78 | + this.config.tagOpenEnd += EOL; |
| 79 | + this.config.tagCloseEnd += EOL; |
| 80 | + this.config.textEnd += EOL; |
80 | 81 | }
|
81 | 82 |
|
82 | 83 | this.indentLevel = 0;
|
@@ -282,7 +283,7 @@ JS2SVG.prototype.createElem = function(data) {
|
282 | 283 |
|
283 | 284 | if (this.textContext == data) {
|
284 | 285 | this.textContext = null;
|
285 |
| - if (this.config.pretty) dataEnd = '\n'; |
| 286 | + if (this.config.pretty) dataEnd = EOL; |
286 | 287 | }
|
287 | 288 |
|
288 | 289 | return openIndent +
|
|
0 commit comments