Skip to content

Commit b826f57

Browse files
Merge pull request #361 from seanmil/fix_options_without_types_markdown
Fix option tag handling with no data types
2 parents e4525f7 + 7717155 commit b826f57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/puppet-strings/markdown/templates/classes_and_defines.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ Data type:<%= code_maybe_block(param[:types].join(', ')) %>
7070
Options:
7171

7272
<% options_for_param(param[:name]).each do |o| -%>
73+
<% if o[:opt_types] -%>
7374
* **<%= o[:opt_name] %>** `<%= o[:opt_types][0] %>`: <%= o[:opt_text] %>
75+
<% else -%>
76+
* **<%= o[:opt_name] %>**: <%= o[:opt_text] %>
77+
<% end -%>
7478
<% end -%>
7579

7680
<% end -%>

0 commit comments

Comments
 (0)