Skip to content

Commit dd01e6b

Browse files
Display text when none provided
Signed-off-by: James Ball <jameball@qti.qualcomm.com>
1 parent cdc5c1c commit dd01e6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/create_normative_rules.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,10 @@ def html_chapter_table(f, table_num, chapter_name, nr_defs, tags, tag_fname2url)
12961296
# tag text that it is found in because these kind of adoc links only link within their document.
12971297
tag_text = convert_adoc_links_to_html(tag_text, target_html_fname)
12981298

1299+
if tag_text.strip.empty?
1300+
tag_text = "(No text available)"
1301+
end
1302+
12991303
tag_link = tag2html_link(tag_ref, tag_ref, target_html_fname)
13001304

13011305
f.puts(%Q{ <tr>}) unless first_row

0 commit comments

Comments
 (0)