We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f645cab commit 0c4a081Copy full SHA for 0c4a081
lib/puppet-strings/markdown/templates/table_of_contents.erb
@@ -14,12 +14,12 @@ _Private <%= group_name %>_
14
15
<% group.each do |item| -%>
16
<% if item[:private] -%>
17
-* `<%= item[:name] %>`<% unless item[:desc].empty? %>: <%= item[:desc] %><% end %>
+* `<%= item[:name] %>`<% unless item[:desc].nil? || item[:desc].empty? %>: <%= item[:desc] %><% end %>
18
<% end -%>
19
20
<% else -%>
21
22
-* [`<%= item[:name] %>`](#<%= item[:link] %>)<% unless item[:desc].empty? %>: <%= item[:desc] %><% end %>
+* [`<%= item[:name] %>`](#<%= item[:link] %>)<% unless item[:desc].nil? || item[:desc].empty? %>: <%= item[:desc] %><% end %>
23
24
25
0 commit comments