Reset comment at start of line iteration

Moved the comment reset to the beginning of each line iteration in handleInput(), ensuring comments are cleared before processing each row. This prevents comments from persisting across lines and fixes potential data carryover issues.
This commit is contained in:
Peter Goodhall 2026-01-14 22:44:43 +00:00
parent 03f44eb725
commit 9eb596351d

View file

@ -188,6 +188,9 @@ function handleInput() {
var rst_s = null;
var rst_r = null;
// Reset comment at the beginning of each line iteration
comment = "";
// Extract comment from angle brackets < >
var commentMatch = row.match(/<([^>]+)>/);
if (commentMatch) {
@ -472,7 +475,6 @@ function handleInput() {
callsign = "";
sotaWwff = "";
gridsquare = "";
comment = "";
// Don't reset satellite info - it persists for multiple QSOs
}