printshorty Posted November 18, 2011 Share Posted November 18, 2011 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! Link to comment Share on other sites More sharing options...
Dan Korn Posted November 29, 2011 Share Posted November 29, 2011 Do you have the "Treat returned strings as tagged text" box checked? If so, the tagged markup parser collapses whitespace. You can use the   entity to denote a literal space character. Link to comment Share on other sites More sharing options...
printshorty Posted November 30, 2011 Author Share Posted November 30, 2011 That was it. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.