Jump to content

Two spaces in a row


printshorty

Recommended Posts

I have a customer who needs a business card formatted to have 2 spaces after each label's colon, as in "fax: " or "mobile:2spaces)"

 

I have a rule to format the phone number a certain way, and I'm trying to do this inside of a rule that hides the label if the field is left empty. When I preview the results it seems to work, but when I get back into Acrobat, FusionPro has trimmed my 2 spaces to 1.

 

Here's what I have that doesn't work (I'm a complete n00b to both javascript and FusionPro btw):

 

if (Field("Fax") == "")

return "";

else

return 'fax: ' +Rule("Change phone format Rule Fax");

 

I'm sure there's a way to keep both spaces, but nothing I've tried works. I'd appreciate any help.

 

Thanks!

Edited by printshorty
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...