Commit e0d937bb authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Don't allow duplicate extended and normal descriptions

If the extended description and the normal (short) description are the same,
delete the extended (long) description.
parent 9afeb9ea
Pipeline #2137 passed with stage
in 7 minutes and 30 seconds
......@@ -628,6 +628,8 @@ function parse_ticfile(fname)
if(tic.desc.length > LEN_FDESC && !tic.ldesc)
tic.ldesc = tic.desc.replace(" ", "\r\n");
tic.desc = format("%.*s", LEN_FDESC, tic.desc.trim());
if(tic.ldesc == tic.desc)
delete tic.ldesc;
f = new File(dir+tic.file);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment