Skip to content

Commit 6b987a1

Browse files
committed
fix(xhtml): pass landscape to buildWhithXhtml(String,...) (align with 3.0.x)
The 2-arg overload ignored landscape (always portrait). Use the 3-arg overload so the String template path honors the landscape flag, matching 3.0.x behavior. 33 xhtml tests green.
1 parent ffc62c5 commit 6b987a1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

easydoc-xhtml/src/main/java/io/github/easy4j/doc/xhtml/WordprocessingMLHtmlTemplate.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ public WordprocessingMLPackage process(InputStream template, Map<String, Object>
126126
*/
127127
@Override
128128
public WordprocessingMLPackage process(String template, Map<String, Object> variables) throws Exception {
129-
// 返回WordprocessingMLPackage对象
130-
return wordMLPackageBuilder.buildWhithXhtml(template, altChunk);
129+
// 返回WordprocessingMLPackage对象(3 参重载传入 landscape,与 3.0.x 行为一致;
130+
// 原 2 参重载忽略 landscape,String 路径总产出纵向文档)
131+
return wordMLPackageBuilder.buildWhithXhtml(template, landscape, altChunk);
131132
}
132133

133134
public DocumentHandler getDocHandler() {

0 commit comments

Comments
 (0)