Skip to content

Commit 9cbf933

Browse files
committed
Fix id handling
1 parent e3e55db commit 9cbf933

File tree

1 file changed

+5
-5
lines changed
  • fj-doc-freemarker/src/main/resources/fj_doc_freemarker_config/template/macro

1 file changed

+5
-5
lines changed

fj-doc-freemarker/src/main/resources/fj_doc_freemarker_config/template/macro/html_element.ftl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
<#assign imageAlign="style='display: block; margin-left: auto; margin-right: auto;'"/>
5454
</#if>
5555
</#if>
56-
<img <@handleId element=current/> ${imageAlign!''} <#if (docImage.alt)??> alt="${docImage.alt}" </#if> ${imageScaling} src="data:image/png;base64, ${docImage.resolvedBase64}" />
56+
<img <@handleId element=docImage/> ${imageAlign!''} <#if (docImage.alt)??> alt="${docImage.alt}" </#if> ${imageScaling} src="data:image/png;base64, ${docImage.resolvedBase64}" />
5757
</#macro>
5858

5959
<#macro handleList docList>
6060
<#if docList.elementList?size gt 0>
61-
<${docList.htmlType} <@handleId element=current/>>
61+
<${docList.htmlType} <@handleId element=docList/>>
6262
<#list docList.elementList as li>
6363
<#if (li?counter > 0)>
64-
<li <@handleId element=current/><#if li.contentList>style="list-style-type: none;"<#elseif docList.listType = 'oll'>style="list-style-type: lower-alpha;"<#elseif docList.listType = 'ulm'>style="list-style-type: square;"<#elseif docList.listType = 'uld'>style="list-style-type: circle;"</#if>> <#list li.elementList as element><@handleElement current=element/></#list></li>
64+
<li <@handleId element=li/><#if li.contentList>style="list-style-type: none;"<#elseif docList.listType = 'oll'>style="list-style-type: lower-alpha;"<#elseif docList.listType = 'ulm'>style="list-style-type: square;"<#elseif docList.listType = 'uld'>style="list-style-type: circle;"</#if>> <#list li.elementList as element><@handleElement current=element/></#list></li>
6565
</#if>
6666
<#assign prevLi=li/>
6767
</#list>
@@ -130,9 +130,9 @@
130130
<@handleBorder mode='border-right' size=docBorders.borderWidthRight color=borderColorRight/>
131131
</#macro>
132132

133-
<#macro handleIdDef element defId><#if element.id??>id="${element.id}" <#else>id="${defId}"</#if></#macro>
133+
<#macro handleIdDef element defId><#if (element.id)??>id="${element.id}" <#else>id="${defId}"</#if></#macro>
134134

135-
<#macro handleId element><#if element.id??>id="${element.id}" </#if></#macro>
135+
<#macro handleId element><#if (element.id)??>id="${element.id}" </#if></#macro>
136136

137137
<#macro handleRowspan rowspanValue> rowspan="${rowspanValue}" </#macro>
138138

0 commit comments

Comments
 (0)