From 8e017de8984004fd6909f96f4247f40e0de1a5c5 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Sat, 23 Oct 2021 13:39:53 +0200 Subject: [PATCH] ReaderSearch: remove stray newline from regex help (#8358) Noticed due to #8356. --- frontend/apps/reader/modules/readersearch.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/apps/reader/modules/readersearch.lua b/frontend/apps/reader/modules/readersearch.lua index fafa157d0..965f0f885 100644 --- a/frontend/apps/reader/modules/readersearch.lua +++ b/frontend/apps/reader/modules/readersearch.lua @@ -36,7 +36,8 @@ function ReaderSearch:init() self.ui.menu:registerToMainMenu(self) end -local help_text = _([[Regular expressions allow you to search for a matching pattern in a text. The simplest pattern is a simple sequence of characters, such as `James Bond`. There are many different varieties of regular expressions, but we support the ECMAScript syntax. The basics will be explained below. +local help_text = _([[ +Regular expressions allow you to search for a matching pattern in a text. The simplest pattern is a simple sequence of characters, such as `James Bond`. There are many different varieties of regular expressions, but we support the ECMAScript syntax. The basics will be explained below. If you want to search for all occurrences of 'Mister Moore', 'Sir Moore' or 'Alfons Moore' but not for 'Lady Moore'. Enter 'Mister Moore|Sir Moore|Alfons Moore'. @@ -53,8 +54,7 @@ Not a space -> '[^ ]' A word -> '[^ ]*[^ ]' Last word in a sentence -> '[^ ]*\.' -Complex expressions may lead to an extremely long search time, in which case not all matches will be shown. -]]) +Complex expressions may lead to an extremely long search time, in which case not all matches will be shown.]]) local SRELL_ERROR_CODES = {} SRELL_ERROR_CODES[102] = _("Wrong escape '\\'")