about summary refs log tree commit diff
path: root/convert.go
diff options
context:
space:
mode:
Diffstat (limited to 'convert.go')
-rw-r--r--convert.go3
1 files changed, 2 insertions, 1 deletions
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)
 	}