(content: str, limit: int = 120)
| 1031 | |
| 1032 | |
| 1033 | def _formula_snippet(content: str, limit: int = 120) -> str: |
| 1034 | normalized = " ".join(content.split()) |
| 1035 | if len(normalized) <= limit: |
| 1036 | return normalized |
| 1037 | return normalized[: limit - 3] + "..." |
| 1038 | |
| 1039 | |
| 1040 | def _strip_fenced_code_preserve_newlines(text: str) -> str: |
no outgoing calls
no test coverage detected