Skip to content
Snippets Groups Projects
Commit e0d937bb authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2137 passed
......@@ -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.close();
f = new File(dir+tic.file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment