code-block-writer
Advanced tools
Comparing version 7.2.0 to 7.2.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="7.2.1"></a> | ||
## [7.2.1](https://github.com/dsherret/code-block-writer/compare/v7.2.0...v7.2.1) (2018-07-14) | ||
### Bug Fixes | ||
* Queued indentation would not by applied when not writing anything and doing a .newline(). ([2d33d46](https://github.com/dsherret/code-block-writer/commit/2d33d46)) | ||
<a name="7.2.0"></a> | ||
@@ -7,0 +17,0 @@ # [7.2.0](https://github.com/dsherret/code-block-writer/compare/v7.1.0...v7.2.0) (2018-05-28) |
@@ -202,2 +202,3 @@ export interface Options { | ||
private _baseWriteNewline(); | ||
private dequeueQueuedIndentation(); | ||
private _updateInternalState(str); | ||
@@ -204,0 +205,0 @@ private _writeIndentation(); |
@@ -318,9 +318,6 @@ "use strict"; | ||
this._writeIndentation(); | ||
if (this._queuedIndentation != null) { | ||
this._currentIndentation = this._queuedIndentation; | ||
this._queuedIndentation = undefined; | ||
} | ||
} | ||
this._updateInternalState(s); | ||
this._text += s; | ||
this.dequeueQueuedIndentation(); | ||
} | ||
@@ -333,3 +330,10 @@ }; | ||
this._isOnFirstLineOfBlock = false; | ||
this.dequeueQueuedIndentation(); | ||
}; | ||
CodeBlockWriter.prototype.dequeueQueuedIndentation = function () { | ||
if (this._queuedIndentation == null) | ||
return; | ||
this._currentIndentation = this._queuedIndentation; | ||
this._queuedIndentation = undefined; | ||
}; | ||
CodeBlockWriter.prototype._updateInternalState = function (str) { | ||
@@ -336,0 +340,0 @@ for (var i = 0; i < str.length; i++) { |
{ | ||
"name": "code-block-writer", | ||
"version": "7.2.0", | ||
"version": "7.2.1", | ||
"description": "A simple code writer that assists with formatting and visualizing blocks of code.", | ||
@@ -5,0 +5,0 @@ "main": "dist/code-block-writer.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124234
699