Clear LAST_OUTPUT_FRAGMENT in some places to avoid matching old values
This commit is contained in:
parent
7f4464d8d3
commit
9703ac3e2b
|
|
@ -298,6 +298,7 @@ function OutputStream(options) {
|
||||||
might_need_semicolon = true;
|
might_need_semicolon = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
LAST_OUTPUT_FRAGMENT = "";
|
||||||
|
|
||||||
if (!options.beautify)
|
if (!options.beautify)
|
||||||
might_need_space = false;
|
might_need_space = false;
|
||||||
|
|
@ -309,6 +310,7 @@ function OutputStream(options) {
|
||||||
while (current_line < target_line) {
|
while (current_line < target_line) {
|
||||||
ensure_line_len();
|
ensure_line_len();
|
||||||
OUTPUT += "\n";
|
OUTPUT += "\n";
|
||||||
|
LAST_OUTPUT_FRAGMENT = "";
|
||||||
current_pos++;
|
current_pos++;
|
||||||
current_line++;
|
current_line++;
|
||||||
current_col = 0;
|
current_col = 0;
|
||||||
|
|
@ -323,6 +325,7 @@ function OutputStream(options) {
|
||||||
|| ((ch == "+" || ch == "-") && ch == last))
|
|| ((ch == "+" || ch == "-") && ch == last))
|
||||||
{
|
{
|
||||||
OUTPUT += " ";
|
OUTPUT += " ";
|
||||||
|
LAST_OUTPUT_FRAGMENT = "";
|
||||||
current_col++;
|
current_col++;
|
||||||
current_pos++;
|
current_pos++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user