Return HTML representing the full text of the original scanned file where the matched text portions and the non-matched text portions are highlighted using HTML tags.
(self, trace=TRACE_HIGHLIGHTED_TEXT)
| 840 | return result |
| 841 | |
| 842 | def get_highlighted_text(self, trace=TRACE_HIGHLIGHTED_TEXT): |
| 843 | """ |
| 844 | Return HTML representing the full text of the original scanned file |
| 845 | where the matched text portions and the non-matched text portions are |
| 846 | highlighted using HTML tags. |
| 847 | """ |
| 848 | if trace: |
| 849 | logger_debug(f'LicenseMatch.get_highlighted_text: self.query: {self.query}') |
| 850 | |
| 851 | query = self.query |
| 852 | if not query: |
| 853 | return u'' |
| 854 | |
| 855 | return ''.join(get_highlighted_lines(match=self, query=query, trace=trace)) |
| 856 | |
| 857 | |
| 858 | def set_matched_lines(matches, line_by_pos): |
nothing calls this directly
no test coverage detected