[REQ] A script to remove an emty line in Description field.

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
jocke
Posts: 4
Joined: 2006-04-19 22:33:52

[REQ] A script to remove an emty line in Description field.

Post by jocke »

Hi

If it's not to hard, could someone please make this script for me?

Most of my movies have the tagline and short description from IMDb and look like this:

Code: Select all

"How do I loathe thee? Let me count the ways."

A remake of the classic Shakespare play "The Taming of the Shrew.", set in a modern day highschool.
But I'd like to remove the emty line so it looks like this:

Code: Select all

"How do I loathe thee? Let me count the ways."
A remake of the classic Shakespare play "The Taming of the Shrew.", set in a modern day highschool.
Is this possible?
Many thanks in advance!
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

You want to remove all empty lines of the field, or only those that could be under the tagline?
In the first case, you can do that:

Code: Select all

  SetField(fieldDescription, StringReplace(GetField(fieldDescription), #13#10#13#10, #13#10));
jocke
Posts: 4
Joined: 2006-04-19 22:33:52

Post by jocke »

Yes, I wanted to remove all emty lines.
So your script works perfect for me.

Thank you very much! :)
Post Reply