feat: make autocomplete more sophisticated
This commit is contained in:
parent
f743b75a59
commit
5417da9b52
3 changed files with 10 additions and 7 deletions
|
|
@ -30,7 +30,7 @@ def scrape(url: str) -> list[tuple[str, str]]:
|
|||
lines = [div.get_text().strip() for div in divs]
|
||||
text = "\n".join(lines)
|
||||
else:
|
||||
text = inp_pre.get_text().replace("\r", "")
|
||||
text = inp_pre.get_text().replace("\r", "").strip()
|
||||
all_inputs.append(text)
|
||||
|
||||
for out_section in output_sections:
|
||||
|
|
@ -41,7 +41,7 @@ def scrape(url: str) -> list[tuple[str, str]]:
|
|||
lines = [div.get_text().strip() for div in divs]
|
||||
text = "\n".join(lines)
|
||||
else:
|
||||
text = out_pre.get_text().replace("\r", "")
|
||||
text = out_pre.get_text().replace("\r", "").strip()
|
||||
all_outputs.append(text)
|
||||
|
||||
if all_inputs and all_outputs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue