summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Julian Sikorski <belegdol+github@gmail.com>2021-05-30 20:25:37 +0200
committer GitHub <noreply@github.com>2021-05-30 13:25:37 -0500
commit97bd2d20df06d3d134897750a4031e6ed739caf3 (patch)
treecfee5a8305476dd485443a9f2dd40834647b89cd
parent2c11de3f1ac94ab77cb18abdd614bad3a8746b06 (diff)
Strip CRs from history.xml (#8115)
-rw-r--r--plugins/data/data_history.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/data/data_history.lua b/plugins/data/data_history.lua
index 78a43e1fd5e..2671d5a065d 100644
--- a/plugins/data/data_history.lua
+++ b/plugins/data/data_history.lua
@@ -119,6 +119,7 @@ local function init()
end,
text = function(text, cdata)
if lasttag == "text" then
+ text = text:gsub("\r", "") -- strip crs
stmt = db.prepare("INSERT INTO \"" .. file .. "\" VALUES (?)")
db.check("inserting values")
stmt:bind_values(text)