-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #484 Add support for thead tag in HTML table.
- Loading branch information
Showing
8 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
tests/org.obeonetwork.m2doc.html.tests/resources/html/tableWithTheadAndTbody/doc.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<html> | ||
<header> | ||
</header> | ||
<body> | ||
<table> | ||
<colgroup> | ||
<col style="width: 11.5384%;" /> | ||
<col style="width: 11.5384%;" /> | ||
<col style="width: 57.6923%;" /> | ||
<col style="width: 11.5384%;" /> | ||
<col style="width: 7.6925%;" /> | ||
</colgroup> | ||
<thead> | ||
<tr> | ||
<th>Hearder 1</th> | ||
<th>Hearder 2</th> | ||
<th>Hearder 3</th> | ||
<th>Hearder 4</th> | ||
<th>Hearder 5</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><p class="tableblock">cell 2.1</p></td> | ||
<td><p class="tableblock">cell 2.1</p></td> | ||
<td><p class="tableblock">cell 2.3</p></td> | ||
<td><p class="tableblock">cell 2.4</p></td> | ||
<td><p class="tableblock">cell 2.5</p></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</body> | ||
</html> | ||
|
11 changes: 11 additions & 0 deletions
11
....html.tests/resources/html/tableWithTheadAndTbody/tableWithTheadAndTbody-expected-ast.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
=== HEADER === | ||
|
||
=== BODY === | ||
|
||
A simple demonstration of a query : | ||
[query: .fromHTMLURI('doc.html')] | ||
End of demonstration. | ||
=== FOOTER === | ||
|
||
=== TEMPLATES === |
Empty file.
Binary file added
BIN
+12.1 KB
...sts/resources/html/tableWithTheadAndTbody/tableWithTheadAndTbody-expected-generation.docx
Binary file not shown.
Empty file.
Binary file added
BIN
+12 KB
...doc.html.tests/resources/html/tableWithTheadAndTbody/tableWithTheadAndTbody-template.docx
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
...ork.m2doc.html.tests/resources/html/tableWithTheadAndTbody/tableWithTheadAndTbody.genconf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<genconf:Generation xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:genconf="http://www.obeonetwork.org/m2doc/genconf/1.0" name="table" templateFileName="table-template.docx" resultFileName="table-actual-generation.docx" validationFileName="table-actual-validation.docx"/> |