Check if the css of the current element defines a fixed width font :type style: dict :rtype: bool
(style: Dict[str, str])
| 128 | |
| 129 | |
| 130 | def google_fixed_width_font(style: Dict[str, str]) -> bool: |
| 131 | """ |
| 132 | Check if the css of the current element defines a fixed width font |
| 133 | |
| 134 | :type style: dict |
| 135 | |
| 136 | :rtype: bool |
| 137 | """ |
| 138 | font_family = "" |
| 139 | if "font-family" in style: |
| 140 | font_family = style["font-family"] |
| 141 | return "courier new" == font_family or "consolas" == font_family |
| 142 | |
| 143 | |
| 144 | def list_numbering_start(attrs: Dict[str, Optional[str]]) -> int: |
no outgoing calls
no test coverage detected
searching dependent graphs…