Return the rule ``text`` prepared for indexing. ############### # IMPORTANT: we use the same process as used to load query text for symmetry ###############
(location=None, text=None)
| 1166 | |
| 1167 | |
| 1168 | def get_rule_text(location=None, text=None): |
| 1169 | """ |
| 1170 | Return the rule ``text`` prepared for indexing. |
| 1171 | ############### |
| 1172 | # IMPORTANT: we use the same process as used to load query text for symmetry |
| 1173 | ############### |
| 1174 | """ |
| 1175 | numbered_lines = query_lines(location=location, query_string=text, plain_text=True) |
| 1176 | return '\n'.join(l.strip() for _, l in numbered_lines) |
| 1177 | |
| 1178 | |
| 1179 | def get_all_spdx_keys(licenses_db): |