blob: ddb927f685bb87933cf2902591622ebac2010d17 [file] [log] [blame]
ooxml.word.create
#item input.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<link href="reset.css" rel="stylesheet"/>
<style>
@page {
size: A4 portrait;
}
body {
counter-reset: h1 h2 h3 h4 h5 h6 figure table;
margin-bottom: 12.10084%;
margin-left: 15.12605%;
margin-right: 15.12605%;
margin-top: 12.10084%;
}
p.\34 {
-uxwrite-display-name: "Test style";
-uxwrite-parent: "p.Normal";
color: #0000FF;
}
p.Normal {
-uxwrite-default: true;
-uxwrite-display-name: "Normal";
}
span.Default_Paragraph_Font {
-uxwrite-default: true;
-uxwrite-display-name: "Default Paragraph Font";
}
table.Normal_Table {
-uxwrite-default: true;
-uxwrite-display-name: "Normal Table";
}
table.Normal_Table > * > tr > td {
padding-bottom: 0pt;
padding-left: 5.4pt;
padding-right: 5.4pt;
padding-top: 0pt;
}
</style>
</head>
<body>
<p class="Normal">
<span>Normal</span>
</p>
<p class="4">
<span>Test style</span>
</p>
</body>
</html>
#item expected
##item document.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:body>
<w:p>
<w:r>
<w:t>Normal</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="4"/>
</w:pPr>
<w:r>
<w:t>Test style</w:t>
</w:r>
</w:p>
<w:sectPr>
<w:pgSz w:h="16840" w:w="11900"/>
<w:pgMar w:bottom="1440" w:left="1800" w:right="1800" w:top="1440"/>
</w:sectPr>
</w:body>
</w:document>
##item styles.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:style w:styleId="4" w:type="paragraph">
<w:name w:val="Test style"/>
<w:basedOn w:val="Normal"/>
<w:qFormat/>
<w:rPr>
<w:color w:val="0000FF"/>
</w:rPr>
</w:style>
<w:style w:default="1" w:styleId="Normal" w:type="paragraph">
<w:name w:val="Normal"/>
<w:qFormat/>
<w:pPr>
<w:spacing w:after="100" w:afterAutospacing="1" w:before="100" w:beforeAutospacing="1"/>
</w:pPr>
</w:style>
<w:style w:default="1" w:styleId="DefaultParagraphFont" w:type="character">
<w:name w:val="Default Paragraph Font"/>
<w:qFormat/>
</w:style>
<w:style w:default="1" w:styleId="TableNormal" w:type="table">
<w:name w:val="Normal Table"/>
<w:qFormat/>
<w:tblPr>
<w:tblCellMar>
<w:top w:type="dxa" w:w="0"/>
<w:left w:type="dxa" w:w="108"/>
<w:bottom w:type="dxa" w:w="0"/>
<w:right w:type="dxa" w:w="108"/>
</w:tblCellMar>
</w:tblPr>
</w:style>
</w:styles>