Fix build issue

This commit is contained in:
Hendrik Kleinwaechter
2023-07-11 09:55:28 +02:00
parent d5889a67a1
commit 1ac6c7b196
2 changed files with 3 additions and 1 deletions

View File

@@ -59,6 +59,8 @@ class ModifyBuild
elements.each do |n|
chapter_number_or_nothing = n.children[0].text.strip
hyperlink_node = n.children[1]
next if hyperlink_node.nil?
# remove unneeded text and merge into single a tag
n.children[0].remove
link_text = hyperlink_node.content