Skip to content

Commit 27d1cc7

Browse files
authored
Fix rendering repeat...until with noEnd (#34)
1 parent 970c444 commit 27d1cc7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Renderer.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -785,17 +785,17 @@ Renderer.prototype._buildTree = function(node) {
785785
this._buildCommentsFromBlock(repeatBlock);
786786
this._buildTree(repeatBlock);
787787

788-
if (!this._options.noEnd) {
789-
// \UNTIL{<cond>}
790-
// ==>
791-
// <p class="ps-line">
792-
// <span class="ps-keyword">until</span>
793-
// </p>
794-
this._newLine();
795-
this._typeKeyword('until ');
796-
var repeatCond = node.children[1];
797-
this._buildTree(repeatCond);
798-
}
788+
789+
// \UNTIL{<cond>}
790+
// ==>
791+
// <p class="ps-line">
792+
// <span class="ps-keyword">until</span>
793+
// </p>
794+
this._newLine();
795+
this._typeKeyword('until ');
796+
var repeatCond = node.children[1];
797+
this._buildTree(repeatCond);
798+
799799
break;
800800
// ------------------- Lines -------------------
801801
case 'command':

0 commit comments

Comments
 (0)