Skip to content

Commit

Permalink
Merge pull request #207 from jelovirt/feature/fix-audience-attribute
Browse files Browse the repository at this point in the history
Use @type in audience
  • Loading branch information
jelovirt authored Dec 19, 2023
2 parents 218d1b2 + 6cd8fdc commit 2f10acd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void render(final YamlFrontMatterBlock node, final NodeRendererContext co
header.containsKey(TOPIC_KEYWORD.localName)
) {
html.startElement(node, TOPIC_METADATA, buildAtts(TOPIC_METADATA));
write(header, TOPIC_AUDIENCE, ATTRIBUTE_NAME_AUDIENCE, html);
write(header, TOPIC_AUDIENCE, ATTRIBUTE_NAME_TYPE, html);
write(header, TOPIC_CATEGORY, html);
if (header.containsKey(TOPIC_KEYWORD.localName)) {
html.startElement(node, TOPIC_KEYWORDS, buildAtts(TOPIC_KEYWORDS));
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/dita/ast.dita
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<publisher class="- topic/publisher ">Publisher</publisher>
<permissions class="- topic/permissions " view="Permissions"/>
<metadata class="- topic/metadata ">
<audience class="- topic/audience " audience="Audience"/>
<audience class="- topic/audience " type="Audience"/>
<category class="- topic/category ">Category</category>
<keywords class="- topic/keywords ">
<keyword class="- topic/keyword ">Keyword1</keyword>
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/dita/map/map_yaml.dita
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<publisher class="- topic/publisher ">Publisher</publisher>
<permissions class="- topic/permissions " view="Permissions"/>
<metadata class="- topic/metadata ">
<audience audience="Audience" class="- topic/audience "/>
<audience type="Audience" class="- topic/audience "/>
<category class="- topic/category ">Category</category>
<keywords class="- topic/keywords ">
<keyword class="- topic/keyword ">Keyword1</keyword>
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/dita/yaml.dita
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<publisher class="- topic/publisher ">Publisher</publisher>
<permissions class="- topic/permissions " view="Permissions"/>
<metadata class="- topic/metadata ">
<audience class="- topic/audience " audience="Audience"/>
<audience class="- topic/audience " type="Audience"/>
<category class="- topic/category ">Category</category>
<keywords class="- topic/keywords ">
<keyword class="- topic/keyword ">Keyword1</keyword>
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/xdita/map/map_yaml.dita
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<publisher class="- topic/publisher ">Publisher</publisher>
<permissions class="- topic/permissions " view="Permissions"/>
<metadata class="- topic/metadata ">
<audience audience="Audience" class="- topic/audience "/>
<audience type="Audience" class="- topic/audience "/>
<category class="- topic/category ">Category</category>
<keywords class="- topic/keywords ">
<keyword class="- topic/keyword ">Keyword1</keyword>
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/xdita/yaml.dita
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<publisher class="- topic/publisher ">Publisher</publisher>
<permissions class="- topic/permissions " view="Permissions"/>
<metadata class="- topic/metadata ">
<audience audience="Audience" class="- topic/audience "/>
<audience type="Audience" class="- topic/audience "/>
<category class="- topic/category ">Category</category>
<keywords class="- topic/keywords ">
<keyword class="- topic/keyword ">Keyword1</keyword>
Expand Down

0 comments on commit 2f10acd

Please sign in to comment.