MCPcopy Index your code
hub / github.com/unclecode/crawl4ai / google_fixed_width_font

Function google_fixed_width_font

crawl4ai/html2text/utils.py:130–141  ·  view source on GitHub ↗

Check if the css of the current element defines a fixed width font :type style: dict :rtype: bool

(style: Dict[str, str])

Source from the content-addressed store, hash-verified

128
129
130def 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
144def list_numbering_start(attrs: Dict[str, Optional[str]]) -> int:

Callers 1

handle_emphasisMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…