aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/locale.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/locale.lua b/core/locale.lua
index e691f21c..48701116 100644
--- a/core/locale.lua
+++ b/core/locale.lua
@@ -24,7 +24,7 @@ for line in f:lines() do
-- Any line that starts with a non-word character except '[' is considered a
-- comment.
if not line:find('^%s*[^%w_%[]') then
- local id, str = line:match('^(.-)%s*=%s*(.+)$')
+ local id, str = line:match('^(.-)%s*=%s*(.-)\r?$')
if id and str and assert(not M[id], 'duplicate locale key "%s"', id) then
M[id] = not CURSES and str or str:gsub('_', '')
end