Raybaudi Posted September 13, 2013 Posted September 13, 2013 We have a text field ( text ) with 2 rows of text: the first row is aligned to center and the second row is aligned to right. first row second row Which is supposed to be the result of: GetAsCSS ( text ) with FMP12 The result isn't consistent, sometimes is: <SPAN STYLE= "text-align: center;" >first row<BR></SPAN> <SPAN STYLE= "text-align: right;" >second row</SPAN> other times is: <SPAN STYLE= "text-align: center;" >first row<BR>second row</SPAN>
No_access Posted September 14, 2013 Posted September 14, 2013 I get <SPAN STYLE= "text-align: center;" >first row<BR>second row</SPAN> every time under normal use. the only way I an able to duplicate your problem is if I hit alt+0 which does not leave a physical character but changes the getasscss() I would look at hidden characters first by retyping the fields on a few records to see if they are all the same. then I would check to see if Filemaker up to date ? are you running the file from Filemaker server or on your local machine?
Raybaudi Posted September 15, 2013 Author Posted September 15, 2013 Thank you. "are you running the file from Filemaker server or on your local machine?" Local The correct behavior ( IMHO ) must be the first result, not the second which lose the "alignment". Now try with the second row bolded: what do you see ?
pixi Posted September 16, 2013 Posted September 16, 2013 daniele, i get this from a local as well as a remtoe file: <SPAN STYLE= "text-align: center;" >first<BR></SPAN><SPAN STYLE= "font-weight: bold;text-align: right;" >second</SPAN> i typed and formatted the text manually.
Raybaudi Posted September 16, 2013 Author Posted September 16, 2013 Yes and that is the odd behavior! Only formatting the second row we can see the correct alignment of the second row.
Raybaudi Posted September 16, 2013 Author Posted September 16, 2013 I'm attaching a simple .fp7 file with a custom function that corrects the GetAsCSS ( ) errors. test GetAsCSS.zip
Recommended Posts
This topic is 4143 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now