From 647ed93df259822ed4884146f2aee41e627ae0af Mon Sep 17 00:00:00 2001 From: ronibalthazar <61232335+ronibalthazar@users.noreply.github.com> Date: Sat, 24 Oct 2026 18:20:38 +0100 Subject: [PATCH] LR-META-LOCATION: clarify GPS split handling --- crates/engine/src/cmd/library.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/engine/src/cmd/library.rs b/crates/engine/src/cmd/library.rs index 7ba7efc41..ee6fecb9e 100644 --- a/crates/engine/src/cmd/library.rs +++ b/crates/engine/src/cmd/library.rs @@ -1850,9 +1850,9 @@ pub(crate) fn parse_gps(t: &str) -> Option<(f64, f64)> { } } - // Without hemisphere letters, a comma-free pair is separated by whitespace. Trying each - // boundary also permits spaces between DMS components without letting unconsumed text vanish. - // If multiple boundaries parse, they must agree so ambiguous text cannot be reinterpreted. + // A comma-free pair can be separated by whitespace. Trying each boundary also permits spaces + // between DMS components without letting unconsumed text vanish. If multiple boundaries parse, + // they must agree so ambiguous text cannot be reinterpreted. for (at, separator) in t.char_indices().filter(|(_, c)| c.is_whitespace()) { let after = at.checked_add(separator.len_utf8())?; if let Some(pair) = parse_gps_pair(t.get(..at)?, t.get(after..)?) {