[checkmk-commits] htmllib: Cleaned up duplicate code a bit