We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0447b3b commit 31304b0Copy full SHA for 31304b0
lua/papis/papis-storage.lua
@@ -193,7 +193,8 @@ function M.get_data_full(metadata)
193
194
-- ensure that everything is of the correct type
195
if type_of_val == "text" then
196
- data[key] = tostring(entry[key])
+ -- convert value to string and remove newline characters
197
+ data[key] = string.gsub(tostring(entry[key]), "[\n\r]", "")
198
elseif type_of_val == "luatable" then
199
if type(entry[key]) == "table" then
200
data[key] = entry[key]
0 commit comments