if you are using a calc, Char (10) is a new line and Char (13) is a carriage return.
rgordon, thanks but this is just text entered into a text object created with the Text Tool.
BruceRobertson, option-return results in the same thing as return for me. The settings I have in place for Line Spacing are applied to both. I need to force the text to the next line without the Line Spacing. Like this example from Word:
Well, this isn't Word. But perhaps you can view the text in Web viewer, what do you get? How can that be leveraged with styles to get what you desire?
I'm aware that this isn't Word. I had already said option-return didn't work and felt an example was needed to clarify.
Viewing the text isn't a concern. I just need to be able to format the text for printing. But this appears to be beyond what FileMaker is capable of.
But does it need to be printed from FileMaker or can it be somewhere that can deal with LF and CR as separate characters? The themes in FileMaker also may make a difference in spacing. That's why I suggested Web Viewer, as you may have more control over the formatting.
And I demonstrated that option-return DOES in fact work.
So maybe you need to define quite specifically what you mean by "work".
Why Bruce, aren't you familiar with the “it doesn't work” school of error reporting?
I just need to be able to format the text for printing. But this appears to be beyond what FileMaker is capable of.
Not true. Others have given you several options to do text formatting, All else failing, you can use multiple text objects and format them the way you want.
1 of 1 people found this helpful
The following demonstrates what "doesn't work":
The above is a Filemaker text field into which I have pasted some text. I have formatted this text field to have 16pt space after paragraphs. The break after the first sentence is created by a carriage return, after the second using a line break (option+return). As you can see, the effect is the same. Unfortunately Filemaker treats a line break as if it were a paragraph break. It has always been thus.
The only way I have ever found to force a line break is to replace the standard spaces between words with hard spaces (option+space), as shown between "Like" and "this". This forces FM to treat this as one long word which it will throw to the next line if space is insufficient. You can do this with as many words as needed to force the break to happen wherever you need it. I do a lot of letter writing in FM and use this technique all the time. It is a workaround and thus a bit of a pain, but not too arduous.
1 of 1 people found this helpful
There are several "line break" characters in unicode, but FM seems treating all as "paragraph separator", maybe historical reason.
For your workaround:
- Set the field "Line Spacing" as "normal" (0 after paragraph)
- Insert Char(8232) as "soft return" (need script for usability)
- Use calculation field for printing
Substitute ( theField ; Char(13) ; Char(13) & TextSize ( Char(13) ; 16 ) )
16 is example of addition for "after paragraph" line spacing.
This field can be unstored, or you can use merge variable or button bar label calculation instead.
Char(8232) is line separator in unicode, but it may be better to use Char(10) if you can enter it with option+retrun on osx. I tested it on only windows and not able to enter Char(10) using shift+Enter.
You know, all I really wanted to do was find out if there was a little-known key command or hidden character or something in FileMaker that would produce a soft return in a text object saving me from having to format each paragraph individually.
Apparently, there isn't. But, as Mike_Mitchell put it, that's somehow my fault. Thanks for the Unhelpful input, Mike.
beverly, I did take a first look at Web Viewer. But I couldn't find anything that would help my situation. I maintain a FileMaker Server hosted set of databases that people in two offices access remotely using FileMaker Pro. Many of the layouts are documents which can be viewed, printed or saved as pdf's from FileMaker as needed. They are designed based on strict standards controlled by law and many contain boilerplate text - much like the fine print you see on the back of a contract. I was unable to find where incorporating Web Viewer would help, but thanks for the suggestion.
BruceRobertson, yes, option-return does "work" by doing exactly the same thing (as far as I can see) as return. As I said in my original post, no keyboard combination I could find - including that one - did what I needed, so they didn't "work" for me. It looks like I may be required to incorporate your suggestion to "hand craft" each affected line. That's just going to add a lot more work to formatting the page as a whole. But, thanks for your suggestions.
keywords, you may be on to something with the option-space command. I will definitely keep that in my bag of tricks. Unfortunately, my attempts to use it here had undesirable results - due to fully justifying my paragraphs. But, thanks!
user19752, the same for you. I definitely need to learn more about the Char() function. That may turn out to be the solution I need. Thank you for the push in that direction.