@register_computer('line-height')
def line_height(computer, name, value):
    if value == 'normal':
        return value
    elif not value.unit:
        return ('NUMBER', value.value)
    elif value.unit == '%':
        factor = value.value / 100.
        font_size_value = computer.computed.font_size
        pixels = factor * font_size_value
    else:
        pixels = length(computer, name, value, pixels_only=True)
    return ('PIXELS', pixels)
Renders a ~tpl file
dataset/ETHPy150Open Kozea/WeasyPrint/weasyprint/css/computed_values.py/line_height--crossover with--dataset/ETHPy150Open gosquadron/squadron/squadron/exthandlers/template.py/ext_template