Jump to content

Adding Spaces in Tagged Text


mstanton

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...