Commit e16b4f5
committed
fix(xhtml,io): align landscape, writeToStream, and file-exists checks with 1.0/3.0
- HtmlTemplate.process(String,Map): pass landscape to buildWhithXhtml
(3-arg overload); 2-arg ignored it (always portrait)
- TemplateWriter.writeToStream: save the full .docx ZIP via
wmlPackage.save(output) instead of writing document.xml text (was not
a valid docx)
- PackageWriter.writeToDocx/Html/PDF(File): drop the inverted
Assert.isTrue(outFile.exists()) so writing a NEW file succeeds (was
failing on fresh output files)
338 core + 33 xhtml tests green.1 parent b55dddc commit e16b4f5
3 files changed
Lines changed: 6 additions & 19 deletions
File tree
- easydoc-core/src/main/java/io/github/easy4j/doc/io
- easydoc-xhtml/src/main/java/io/github/easy4j/doc/xhtml
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
| |||
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
168 | | - | |
169 | 167 | | |
170 | 168 | | |
171 | 169 | | |
| |||
238 | 236 | | |
239 | 237 | | |
240 | 238 | | |
241 | | - | |
242 | 239 | | |
243 | 240 | | |
244 | 241 | | |
| |||
Lines changed: 3 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 85 | + | |
| 86 | + | |
98 | 87 | | |
99 | 88 | | |
100 | 89 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
0 commit comments