|
|
@@ -26,10 +26,13 @@ func (x *XMLStyleSuite) TestMarshalXlsxStyleSheetWithAFont(c *C) {
|
|
|
font := xlsxFont{}
|
|
|
font.Sz.Val = "10"
|
|
|
font.Name.Val = "Andale Mono"
|
|
|
+ font.B = &struct{}{}
|
|
|
+ font.I = &struct{}{}
|
|
|
+ font.U = &struct{}{}
|
|
|
styles.Fonts.Font[0] = font
|
|
|
|
|
|
expected := `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><fonts count="1"><font><sz val="10"/><name val="Andale Mono"/></font></fonts></styleSheet>`
|
|
|
+<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><fonts count="1"><font><sz val="10"/><name val="Andale Mono"/><b/><i/><u/></font></fonts></styleSheet>`
|
|
|
result, err := styles.Marshal()
|
|
|
c.Assert(err, IsNil)
|
|
|
c.Assert(string(result), Equals, expected)
|