From e315d8690d330e6f2997673335df67ec99926a38 Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 17 Sep 2019 14:27:51 +0200 Subject: [PATCH] [chore] Remove unnecessary indent on new line (#5391) --- frontend/apps/cloudstorage/dropbox.lua | 4 ++-- frontend/apps/cloudstorage/ftp.lua | 2 +- frontend/apps/opdscatalog/opdscatalog.lua | 2 +- frontend/ui/screensaver.lua | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/apps/cloudstorage/dropbox.lua b/frontend/apps/cloudstorage/dropbox.lua index 5113d27fc..60e5ed4b4 100644 --- a/frontend/apps/cloudstorage/dropbox.lua +++ b/frontend/apps/cloudstorage/dropbox.lua @@ -23,7 +23,7 @@ function DropBox:downloadFile(item, password, path, close) }) else UIManager:show(ConfirmBox:new{ - text = T(_("File saved to:\n %1\nWould you like to read the downloaded book now?"), + text = T(_("File saved to:\n%1\nWould you like to read the downloaded book now?"), path), ok_callback = function() close() @@ -50,7 +50,7 @@ function DropBox:config(item, callback) "7. Under the 'Generated access token' section, then enter code in Dropbox token field." local hint_top = _("Your Dropbox name") local text_top = "" - local hint_bottom = _("Dropbox token\n\n\n\n ") + local hint_bottom = _("Dropbox token\n\n\n\n") local text_bottom = "" local title local text_button_right = _("Add") diff --git a/frontend/apps/cloudstorage/ftp.lua b/frontend/apps/cloudstorage/ftp.lua index 7c2ff1435..ad15e6b58 100644 --- a/frontend/apps/cloudstorage/ftp.lua +++ b/frontend/apps/cloudstorage/ftp.lua @@ -32,7 +32,7 @@ function Ftp:downloadFile(item, address, user, pass, path, close) }) else UIManager:show(ConfirmBox:new{ - text = T(_("File saved to:\n %1\nWould you like to read the downloaded book now?"), + text = T(_("File saved to:\n%1\nWould you like to read the downloaded book now?"), path), ok_callback = function() close() diff --git a/frontend/apps/opdscatalog/opdscatalog.lua b/frontend/apps/opdscatalog/opdscatalog.lua index c5f2606e9..13b22651e 100644 --- a/frontend/apps/opdscatalog/opdscatalog.lua +++ b/frontend/apps/opdscatalog/opdscatalog.lua @@ -25,7 +25,7 @@ function OPDSCatalog:init() close_callback = function() return self:onClose() end, file_downloaded_callback = function(downloaded_file) UIManager:show(ConfirmBox:new{ - text = T(_("File saved to:\n %1\nWould you like to read the downloaded book now?"), + text = T(_("File saved to:\n%1\nWould you like to read the downloaded book now?"), downloaded_file), ok_text = _("Read now"), cancel_text = _("Read later"), diff --git a/frontend/ui/screensaver.lua b/frontend/ui/screensaver.lua index 2b8f7065d..d761cddad 100644 --- a/frontend/ui/screensaver.lua +++ b/frontend/ui/screensaver.lua @@ -87,7 +87,7 @@ function Screensaver:chooseFolder() screensaver_dir = DataStorage:getDataDir() .. "/screenshots/" end self.choose_dialog = ButtonDialogTitle:new{ - title = T(_("Current screensaver image directory:\n %1"), screensaver_dir), + title = T(_("Current screensaver image directory:\n%1"), screensaver_dir), buttons = buttons } UIManager:show(self.choose_dialog) @@ -149,8 +149,8 @@ function Screensaver:chooseFile(document_cover) if screensaver_image == nil then screensaver_image = DataStorage:getDataDir() .. "/resources/koreader.png" end - local title = document_cover and T(_("Current screensaver document cover:\n %1"), screensaver_document_cover) - or T(_("Current screensaver image:\n %1"), screensaver_image) + local title = document_cover and T(_("Current screensaver document cover:\n%1"), screensaver_document_cover) + or T(_("Current screensaver image:\n%1"), screensaver_image) self.choose_dialog = ButtonDialogTitle:new{ title = title, buttons = buttons