blob: f92975d60d5ebac2737ed99d16afed04bf78b5c0 [file] [log] [blame]
ooxml.word.create
#item input.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<table style="width: 80%">
<tr>
<td>One</td>
<td>Two</td>
</tr>
<tr>
<td>Three</td>
<td>Four</td>
</tr>
</table>
</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:tbl>
<w:tblPr>
<w:tblStyle w:val="TableGrid"/>
<w:tblW w:type="pct" w:w="4000"/>
</w:tblPr>
<w:tblGrid>
<w:gridCol w:w="3894"/>
<w:gridCol w:w="3894"/>
</w:tblGrid>
<w:tr>
<w:tc>
<w:tcPr>
<w:tcW w:type="pct" w:w="2500"/>
</w:tcPr>
<w:p>
<w:r>
<w:t>One</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:type="pct" w:w="2500"/>
</w:tcPr>
<w:p>
<w:r>
<w:t>Two</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
<w:tr>
<w:tc>
<w:tcPr>
<w:tcW w:type="pct" w:w="2500"/>
</w:tcPr>
<w:p>
<w:r>
<w:t>Three</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:type="pct" w:w="2500"/>
</w:tcPr>
<w:p>
<w:r>
<w:t>Four</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
</w:tbl>
<w:sectPr>
<w:pgSz w:h="16840" w:w="11900"/>
<w:pgMar w:bottom="1190" w:left="1190" w:right="1190" w:top="1190"/>
</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: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:style w:styleId="TableGrid" w:type="table">
<w:name w:val="Table Grid"/>
<w:basedOn w:val="TableNormal"/>
<w:qFormat/>
<w:tblPr>
<w:jc w:val="center"/>
<w:tblBorders>
<w:top w:color="000000" w:sz="6" w:val="single"/>
<w:left w:color="000000" w:sz="6" w:val="single"/>
<w:bottom w:color="000000" w:sz="6" w:val="single"/>
<w:right w:color="000000" w:sz="6" w:val="single"/>
<w:insideH w:color="000000" w:sz="6" w:val="single"/>
<w:insideV w:color="000000" w:sz="6" w:val="single"/>
</w:tblBorders>
<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:trPr>
<w:jc w:val="center"/>
</w:trPr>
</w:style>
</w:styles>