Ejemplo n.º 1
0
def _get_width(value):
    if value is None:
        return 0
    # TODO(jkung): take into account \n
    return _get_size(six.text_type(value))[0]  # get width from [width,height]
Ejemplo n.º 2
0
def get_width(value):
    if value is None:
        return 0

    return _get_size(six.text_type(value))[0]  # get width from [width,height]