From d4635457825b6feb4e21eb36cc8f448373a4e90e Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 14 Sep 2019 22:54:55 +0200 Subject: stripping the spaces from the revolution numbers --- convert.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'convert.go') diff --git a/convert.go b/convert.go index a3ff44e..0e64637 100644 --- a/convert.go +++ b/convert.go @@ -220,7 +220,8 @@ func parseLineTwo(SplitTLE []string) (LineTwo, error) { } // Parse the RevolutionNumberAtEpoch - RevolutionNumberAtEpoch, err := strconv.Atoi(SplitTLE[2][63:68]) + RawRevolutionNumberAtEpoch := strings.TrimSpace(SplitTLE[2][63:68]) + RevolutionNumberAtEpoch, err := strconv.Atoi(RawRevolutionNumberAtEpoch) if err != nil { return LineTwo{}, fmt.Errorf("%s: %#v\n%v", "Could not parse the RevolutionNumberAtEpoch", SplitTLE[2][63:68], err) } -- cgit 1.4.1