namespace GoogleSheetsScheduleImport; public static class ImportLineFormatter { public static string FormatOccurrenceLine(ParsedOccurrenceLine line) { var name = TextNormalization.ForEmitLine(line.Name); var time = TextNormalization.ForEmitLine(line.TimeRange); var loc = TextNormalization.ForEmitLine(line.Location); var tail = string.IsNullOrEmpty(loc) ? string.Empty : $" {loc}"; return $"{name} {line.Month} {line.Day} {time}{tail}"; } }