Geoffrey J. Teale 10 years ago
parent
commit
33fe9f8e94
3 changed files with 7 additions and 7 deletions
  1. 2 2
      lib_test.go
  2. 1 1
      sheet_test.go
  3. 4 4
      xmlStyle.go

+ 2 - 2
lib_test.go

@@ -388,8 +388,8 @@ func (l *LibSuite) TestReadRowsFromSheetBadR(c *C) {
 	file := new(File)
 	file.referenceTable = MakeSharedStringRefTable(sst)
 
-    // Discarding all return values; this test is a regression for
-    // a panic due to an "index out of range."
+	// Discarding all return values; this test is a regression for
+	// a panic due to an "index out of range."
 	readRowsFromSheet(worksheet, file)
 }
 

+ 1 - 1
sheet_test.go

@@ -123,7 +123,7 @@ func (s *SheetSuite) TestMakeXLSXSheetAlsoPopulatesXLSXSTyles(c *C) {
 	refTable := NewSharedStringRefTable()
 	styles := newXlsxStyleSheet(nil)
 	worksheet := sheet.makeXLSXSheet(refTable, styles)
-	
+
 	c.Assert(styles.Fonts.Count, Equals, 2)
 	c.Assert(styles.Fonts.Font[0].Sz.Val, Equals, "12")
 	c.Assert(styles.Fonts.Font[0].Name.Val, Equals, "Verdana")

+ 4 - 4
xmlStyle.go

@@ -59,10 +59,10 @@ var builtInNumFmt = map[int]string{
 
 const (
 	builtInNumFmtIndex_GENERAL = int(0)
-	builtInNumFmtIndex_INT = int(1)
-	builtInNumFmtIndex_FLOAT = int(2)
-	builtInNumFmtIndex_DATE = int(14)
-	builtInNumFmtIndex_STRING = int(49)
+	builtInNumFmtIndex_INT     = int(1)
+	builtInNumFmtIndex_FLOAT   = int(2)
+	builtInNumFmtIndex_DATE    = int(14)
+	builtInNumFmtIndex_STRING  = int(49)
 )
 
 // xlsxStyle directly maps the styleSheet element in the namespace