diff --git a/rinex/src/header.rs b/rinex/src/header.rs index 1cf330381..63afc1f00 100644 --- a/rinex/src/header.rs +++ b/rinex/src/header.rs @@ -1613,8 +1613,11 @@ impl Header { for (constell, observables) in &obs.codes { let mut descriptor = String::new(); descriptor.push_str(&format!("{:x}{:5}", constell, observables.len())); - for observable in observables { - descriptor.push_str(&format!(" {}", observable)); + for (i, observable) in observables.iter().enumerate() { + if (i % 13) == 0 && (i > 0) { + descriptor.push_str(&format!(" ")); // TAB + } + descriptor.push_str(&format!(" {}", observable)); // TAB } writeln!(f, "{}", fmt_rinex(&descriptor, "SYS / # / OBS TYPES"))?; } diff --git a/rinex/src/lib.rs b/rinex/src/lib.rs index d604f4e2d..1ce62f1d7 100644 --- a/rinex/src/lib.rs +++ b/rinex/src/lib.rs @@ -147,12 +147,8 @@ pub(crate) fn fmt_rinex(content: &str, marker: &str) -> String { for i in 0..nb_lines { let start_off = i * 60; let end_off = std::cmp::min(start_off + 60, content.len()); - string.push_str(&format!( - "{: