openSUSE / suse-xsl

DocBook XSL Stylesheets for SUSE branding
Other
11 stars 10 forks source link

Fix #493 (again): This time for Quick Starts #495

Closed tomschr closed 1 year ago

tomschr commented 1 year ago

Got exception from the expression $(this).prevAll('...')[0].innerHTML when there was no object after [0]. Avoided it with an if-clause and checked for undefined object.

Add additional, local "prev(x)" function to make code a bit more readable (lots of repeating things).