mstanton Posted August 20, 2009 Share Posted August 20, 2009 Hello, I have a rule that needs to "Return strings as tagged text" but also needs to include several spaces in a row. How can I accomplish this? What I have is: if (Field("Doctor1") != "") { return ('<span font="Zapf Dingbats">' + "q" + '</span>' + " " + Field("Doctor1")); } else return "";And I need to add 3 spaces before the "q". Link to comment Share on other sites More sharing options...
mhilger Posted August 20, 2009 Share Posted August 20, 2009 Hello, You can include the non-breaking space entity for each space you need: So that would be: if (Field("Doctor1") != "") { return ('<span font="Zapf Dingbats">' + " q" + '</span>' + " " + Field("Doctor1")); } else return ""; Link to comment Share on other sites More sharing options...
mstanton Posted August 20, 2009 Author Share Posted August 20, 2009 That worked, except putting the with the q returned the spaces as dingbats, but putting them before the span tag did the trick; thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.