Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Fix the count attribute of the numFmts element #36

Merged
merged 1 commit into from
Apr 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Simplexcel/XlsxInternal/StyleWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private static void StyleAddCellStyleXfsElement(XDocument doc)

private static void StyleAddNumFmtsElement(XDocument doc, List<string> numberFormats)
{
var numFmtsElem = new XElement(Namespaces.workbook + "numFmts", new XAttribute("count", numberFormats.Count + 1));
var numFmtsElem = new XElement(Namespaces.workbook + "numFmts", new XAttribute("count", numberFormats.Count));

for (int i = 0; i < numberFormats.Count; i++)
{
Expand Down