Remove some leading and trailing newlines (#3768)

in some InfoMessage and ConfirmBox, introduced willingly
or not, that cause top or bottom padding
pull/3769/head
poire-z 6 years ago committed by Frans de Jonge
parent 0fde66c2c6
commit b3b7e3d279

@ -350,8 +350,7 @@ KOReader has a build-in OCR engine for recognizing words in scanned PDF and DjVu
You can download language data files for version 3.04 from https://github.com/tesseract-ocr/tesseract/wiki/Data-Files
Copy the language data files for Tesseract 3.04 (e.g., eng.traineddata for English and spa.traineddata for Spanish) into koreader/data/tessdata
]])
Copy the language data files for Tesseract 3.04 (e.g., eng.traineddata for English and spa.traineddata for Spanish) into koreader/data/tessdata]])
function ReaderHighlight:lookup(selected_word, selected_link)
-- if we extracted text directly

@ -658,35 +658,31 @@ function BookInfoManager:extractBooksInDirectory(path, cover_specs)
local Screen = require("device").screen
local go_on = Trapper:confirm(_([[
This will extract metadata and cover images for books in current directory.
Once extraction has started, you can abort at any moment by tapping on the screen.
Cover images will be saved with the adequate size for the current display mode.
If you later change display mode, they may need to be extracted again.
This extraction may take time and use some battery power: you may wish to keep your device plugged in.
]]) , _("Cancel"), _("Continue"))
This extraction may take time and use some battery power: you may wish to keep your device plugged in.]]
), _("Cancel"), _("Continue"))
if not go_on then
return
end
local recursive = Trapper:confirm(_([[
Do you want to extract book information for books in sub-directories too?
]]) , _("Here only"), _("Here and under"))
Do you want to extract book information for books in sub-directories too?]]
), _("Here only"), _("Here and under"))
local refresh_existing = Trapper:confirm(_([[
Do you want to refresh metadata and covers that have already been extracted?
]]) , _("Don't refresh"), _("Refresh"))
Do you want to refresh metadata and covers that have already been extracted?]]
), _("Don't refresh"), _("Refresh"))
local prune = Trapper:confirm(_([[
If you have removed many books, or have renamed some directories, it is good to remove them from the cache database.
Do you want to prune cache of removed books?
]]) , _("Don't prune"), _("Prune"))
Do you want to prune cache of removed books?]]
), _("Don't prune"), _("Prune"))
Trapper:clear()

Loading…
Cancel
Save