italic font doesn't show in citations

edited February 1, 2018
Hello

I have recently updated the "University College Lillebælt - Harvard" style, and have tried and failed to show law titles in italic in citations. I use the following code:

<macro name="author-citation">
<choose>
<if type="legislation">
<names variable="author">
<name name-as-sort-order="all" initialize-with="."/>
<substitute>
<text variable="title" font-style="italic"/>
</substitute>
</names>
</if>
<else-if type="entry-dictionary entry-encyclopedia article-newspaper chapter broadcast motion_picture" match="any">
<text macro="author-special"/>
</else-if>
<else>
<names variable="author">
<name name-as-sort-order="all" initialize-with="."/>
<substitute>
<names variable="editor"/>
<names variable="composer"/>
<text term="anonymous"/>
</substitute>
</names>
</else>
</choose>
</macro>

The title is written as wanted, except it isn't italicized, and I can't figure out why not.

PS: I'm using LibreOffice.
This discussion has been closed.