don't eat part of output
This commit is contained in:
parent
79c0398908
commit
c9e9b8d941
|
@ -59,16 +59,15 @@ BEGIN {
|
||||||
line = post_match;
|
line = post_match;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (length(post_match) > 0) {
|
|
||||||
tokens_by_line[n_lines][n_tokens]["value"] = post_match
|
|
||||||
tokens_by_line[n_lines][n_tokens]["type"] = "text"
|
|
||||||
|
|
||||||
n_tokens++
|
|
||||||
}
|
|
||||||
|
|
||||||
if (n_tokens == 0) {
|
if (n_tokens == 0) {
|
||||||
tokens_by_line[n_lines][n_tokens]["value"] = line
|
tokens_by_line[n_lines][n_tokens]["value"] = line
|
||||||
tokens_by_line[n_lines][n_tokens]["type"] = "text"
|
tokens_by_line[n_lines][n_tokens]["type"] = "text"
|
||||||
|
} else if (length(post_match) > 0) {
|
||||||
|
tokens_by_line[n_lines][n_tokens]["value"] = post_match
|
||||||
|
tokens_by_line[n_lines][n_tokens]["type"] = "text"
|
||||||
|
|
||||||
|
n_tokens++
|
||||||
}
|
}
|
||||||
|
|
||||||
n_lines++
|
n_lines++
|
||||||
|
|
Loading…
Reference in New Issue