Author Topic: Trimming IPTC field white space  (Read 2298 times)

Offline devenh

  • Sr. Member
  • ****
  • Posts: 435
    • View Profile
Trimming IPTC field white space
« on: March 21, 2013, 01:34:17 PM »
Just wondering whether any new tools have been added to trim the white space from IPTC fields since my last thread on this topic:

http://forums.camerabits.com/index.php?topic=5388.msg24638#msg24638

Some of my field values have a space and CF/LF at the end.  Not sure why, really.  These values are added via CR.  Only seems to affect multiline fields (e.g. Headline).  Single line fields like Category are fine -- no trailing blank nor CF/LF.

Anyway, the past advice has been to use something like {headline:0,-2} to correct it, which will of course assuming each field needs to be trimmed by 2 characters.  I am hoping there is something a little more flexible?

Deven

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24767
    • View Profile
    • Camera Bits, Inc.
Re: Trimming IPTC field white space
« Reply #1 on: March 21, 2013, 02:14:53 PM »
Deven,

No, no new capabilities have been added to variables substring extraction.

-Kirk

Offline devenh

  • Sr. Member
  • ****
  • Posts: 435
    • View Profile
Re: Trimming IPTC field white space
« Reply #2 on: March 21, 2013, 02:20:42 PM »
Okay, thanks.

Also found the source of the trailing space and CR/LF -- my stationery pad ...

Deven