Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-25 17:11:47 +08:00
parent aa250f2da9
commit e38635c1f1
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 6 additions and 6 deletions

View file

@ -302,7 +302,7 @@ func resolveEmbedR(n *ast.Node, blockEmbedMode int, luteEngine *lute.Lute, resol
} else if "h" == sqlBlock.Type {
h := treenode.GetNodeInTree(subTree, sqlBlock.ID)
var hChildren []*ast.Node
// 从嵌入块的 IAL 属性中解析 custom-heading-mode默认值为 0
blockHeadingMode := 0 // 默认值
if customHeadingMode := n.IALAttr("custom-heading-mode"); "" != customHeadingMode {
@ -310,9 +310,9 @@ func resolveEmbedR(n *ast.Node, blockEmbedMode int, luteEngine *lute.Lute, resol
blockHeadingMode = mode
}
}
// 根据 blockHeadingMode 处理标题块的显示
// blockHeadingMode: 0=显示标题与下方的块1=仅显示标题2=仅显示标题下方的块(默认)
// blockHeadingMode: 0=显示标题与下方的块1=仅显示标题2=仅显示标题下方的块
if 1 == blockHeadingMode {
// 仅显示标题
hChildren = append(hChildren, h)