@@ -178,7 +178,7 @@ function api:cs_for_authors(csname, conjunction, sort_by_contrib)
178
178
tex .error (err )
179
179
end
180
180
else
181
- tex .error (' ERROR: \\ ' .. csname .. ' not defined' )
181
+ tex .error (' ERROR: ' .. csname .. ' not defined' )
182
182
end
183
183
end
184
184
@@ -199,7 +199,7 @@ function api:cs_commit(csname, rev, format)
199
199
tex .error (' ERROR: ' .. (err or ' nil' ))
200
200
end
201
201
else
202
- tex .error (' ERROR: \\ ' .. csname .. ' not defined' )
202
+ tex .error (' ERROR: ' .. csname .. ' not defined' )
203
203
end
204
204
end
205
205
@@ -208,7 +208,7 @@ function api:cs_last_commit(csname, format)
208
208
end
209
209
210
210
local parse_commit_opts = luakeys .define ({
211
- rev_spec = { data_type = ' string ' , pick = ' string' },
211
+ rev_spec = { pick = ' string' },
212
212
files = { data_type = ' list' },
213
213
cwd = { data_type = ' string' },
214
214
flags = {
@@ -233,15 +233,18 @@ function api:cs_for_commit(csname, args, format)
233
233
if token .is_defined (csname ) then
234
234
local tok = token .create (csname )
235
235
local opts = parse_commit_opts (args )
236
- -- Something is going wrong with the parsing of rev_spec with pick, which ends up to be missing
237
- -- This is a walkaround to ensure the old API would still work
236
+ -- Something is going wrong with the parsing of rev_spec with pick, which ends up to be missing.
237
+ -- This is a workaround to ensure the old API would still work.
238
+ -- This will be fixed after luakeys version >0.13.0
238
239
if type (opts .rev_spec ) ~= ' string' then
239
240
local i = string.find (args , ' ,' )
240
241
if i then
241
242
opts .rev_spec = string.sub (args , 1 , i - 1 )
242
243
else
243
244
opts .rev_spec = args
244
245
end
246
+ else
247
+ opts .rev_spec = string.gsub (opts .rev_spec , ' [\' "]' , ' ' )
245
248
end
246
249
local log , err = self .cmd :log (format , opts .rev_spec , parse_flags (opts .flags ), opts .cwd , opts [' files' ])
247
250
if log then
@@ -252,10 +255,10 @@ function api:cs_for_commit(csname, args, format)
252
255
end
253
256
end
254
257
else
255
- tex .error (' ERROR:\\ ' .. err )
258
+ tex .error (' ERROR: ' .. err )
256
259
end
257
260
else
258
- tex .error (' ERROR: \\ ' .. csname .. ' not defined' )
261
+ tex .error (' ERROR: ' .. csname .. ' not defined' )
259
262
end
260
263
end
261
264
@@ -293,7 +296,7 @@ function api:cs_tag(csname, format_spec, tag, target_dir)
293
296
end
294
297
end
295
298
else
296
- tex .error (' ERROR:\\ ' .. csname .. ' not defined' )
299
+ tex .error (' ERROR: ' .. csname .. ' not defined' )
297
300
end
298
301
end
299
302
@@ -309,10 +312,10 @@ function api:cs_for_tag(csname, format_spec, target_dir)
309
312
end
310
313
end
311
314
else
312
- tex .error (' ERROR:\\ ' .. err )
315
+ tex .error (' ERROR: ' .. err )
313
316
end
314
317
else
315
- tex .error (' ERROR:\\ ' .. csname .. ' not defined' )
318
+ tex .error (' ERROR: ' .. csname .. ' not defined' )
316
319
end
317
320
end
318
321
@@ -330,10 +333,10 @@ function api:cs_for_tag_sequence(csname, target_dir)
330
333
end
331
334
end
332
335
else
333
- tex .error (' ERROR:\\ ' .. (err or ' Unknown error' ))
336
+ tex .error (' ERROR: ' .. (err or ' Unknown error' ))
334
337
end
335
338
else
336
- tex .error (' ERROR:\\ ' .. csname .. ' not defined' )
339
+ tex .error (' ERROR: ' .. csname .. ' not defined' )
337
340
end
338
341
end
339
342
0 commit comments