Return characters not printing
Posted: Sun Aug 09, 2009 1:49 pm
I'm trying to set up a simple report from a database, using the Ebook "Printing in Revolution" as a starting point. It's going OK, except that when I move data into the "holding" field, carriage return characters (Asc 10) are going missing.
This is the sort of thing I'm doing, within a loop:
The result: field "HoldContents" ends up with all of the exercise text, word-wrapping nicely, but with no white space where the CRs used to be - very hard to read !
Any ideas ? Thanks.
(PS: I've checked that there really are no CRs by doing a "replace cr with LF in field ..." - no little boxes showed up, which is what LFs look like on Windows. I also checked that there really are CRs in the database, using a hex editor.)
This is the sort of thing I'm doing, within a loop:
Code: Select all
set the htmlText of line LineToAdd of field "HoldContents" of card 1 of stack "PrintStack" to revDatabaseColumnNamed(curID, "EX_Description")
put LineToAdd + 1 into LineToAdd
Any ideas ? Thanks.
(PS: I've checked that there really are no CRs by doing a "replace cr with LF in field ..." - no little boxes showed up, which is what LFs look like on Windows. I also checked that there really are CRs in the database, using a hex editor.)