Skip to content
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
Fix output order of Sheet Properties
  • Loading branch information
Matt Keeney committed Nov 11, 2016
commit b04fdc830768907883cf9bc19afbd746d1a2f6ea
3 changes: 2 additions & 1 deletion lib/stream/xlsx/worksheet-writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,10 @@ WorksheetWriter.prototype = {
xml.addText('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>');
xml.addText('<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">');

this._writeSheetProperties(xml, this.properties, this.pageSetup);

xml.addText(xform.sheetViews.toXml(this.views));

this._writeSheetProperties(xml, this.properties, this.pageSetup);
this._writeSheetFormatProperties(xml, this.properties);

this.stream.write(xml);
Expand Down