diff --git a/src/Spreadsheet/Template.fs b/src/Spreadsheet/Template.fs index bf4efd08..23d27a35 100644 --- a/src/Spreadsheet/Template.fs +++ b/src/Spreadsheet/Template.fs @@ -239,6 +239,12 @@ module Template = (ResizeArray tags) lastUpdated + let isMetadataSheetName (name : string) = + name = metaDataSheetName || name = obsoletemetaDataSheetName + + let isMetadataSheet (sheet : FsWorksheet) = + isMetadataSheetName sheet.Name + let toMetadataSheet (template : Template) : FsWorksheet = let sheet = FsWorksheet(metaDataSheetName) Template.toRows template