September 13, 201312 yr 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>
September 14, 201312 yr 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?
September 15, 201312 yr Author 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 ?
September 16, 201312 yr 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.
September 16, 201312 yr Author Yes and that is the odd behavior! Only formatting the second row we can see the correct alignment of the second row.
September 16, 201312 yr Author I'm attaching a simple .fp7 file with a custom function that corrects the GetAsCSS ( ) errors. test GetAsCSS.zip
Create an account or sign in to comment