Page 1 of 1
Remove trailing Spaces from Title field
Posted: 2013-03-28 20:31:33
by Tetsujin
Is removing trailing spaces from the Title field something that I could do with RemoveBadChars.ifs
I imported Titles without checking for trailing spaces first.
Posted: 2013-03-29 10:47:15
by antp
I am not sure if it does, but you could probably just use a simple script like this:
Code: Select all
Program NewScript;
var
s: string;
begin
s := GetField(fieldOriginalTitle);
s := Trim(s);
SetField(fieldOriginalTitle, s);
end.
(note that it will also remove leading spaces if there are any, but I guess it is not a problem)