Skip to content

Commit a6d8db2

Browse files
author
p12
committed
Preprocess: replace all :nth-child(1) with :first-child in css files
This fixes viewing of the documentation in Qt Assistant and related tools.
1 parent f42b75a commit a6d8db2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

preprocess.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@
119119
# append the modifications
120120
text += css_app
121121

122+
# QT Help viewer doesn't understand nth-child
123+
text = text.replace('nth-child(1)', 'first-child')
124+
122125
f = open(fn, "w")
123126
f.write(text)
124127
f.close()

0 commit comments

Comments
 (0)