diff --git a/porcupine/plugins/google_search.py b/porcupine/plugins/google_search.py index 7618d3cc6..303646b89 100644 --- a/porcupine/plugins/google_search.py +++ b/porcupine/plugins/google_search.py @@ -16,7 +16,7 @@ def google_search(tab: tabs.FileTab) -> None: return # Check multi line or text with only spaces - if selected_text.strip() and "\n" not in selected_text: + if selected_text.strip() and "\n" not in selected_text or selected_text.strip() and "\n" in selected_text: url = f"https://www.google.com/search?q={urllib.parse.quote_plus(selected_text)}" webbrowser.open_new_tab(url)