* Returns the newline character that's being used, depending on the value of `newLineMode`. * @returns {String} If `newLineMode == windows`, `\r\n` is returned. * If `newLineMode == unix`, `\n` is returned. * If `newLineMode == auto`, the value of `autoNewLine` is returned.
()
| 83 | * |
| 84 | **/ |
| 85 | getNewLineCharacter() { |
| 86 | switch (this.$newLineMode) { |
| 87 | case "windows": |
| 88 | return "\r\n"; |
| 89 | case "unix": |
| 90 | return "\n"; |
| 91 | default: |
| 92 | return this.$autoNewLine || "\n"; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * [Sets the new line mode.]{: #Document.setNewLineMode.desc} |
no outgoing calls
no test coverage detected