lajackson wrote:Sometimes I add a return (Enter) to break a paragraph into two at the end of a sentence. It appears to do so in SaM, but when the message is sent, the two "paragraphs" are run together with no spaces.
I tested this in SaM and ended up with the same results. I found that when reviewing the SaM message body code that a paragraph has this code using two formatting tags:
Code: Select all
<p>The first sentence. The second sentence.<br data-mce-bogus="1"></p>
Where "The first sentence. The second sentence." is the text typed into the message box for a single paragraph.
When the original paragraph of two sentences are split into two single sentence paragraphs by hitting "Enter" after the first sentence then the break tag, <br>, is missing that splits the two new paragraphs and the code looks like this:
Code: Select all
<p>The first sentence.</p><p> The second sentence.<br data-mce-bogus="1"></p>
So when the message is received the two one sentence paragraphs are one paragraph again.
lajackson wrote:So what clues do I have to tell me where the divisions are between the various paragraphs in Send a Message.
Unless you review the code I have no other idea.
I did check the code for a message created in a text editor like Notepad and then copied into SaM and noticed that SaM only had the opening paragraph tag, <p>, at the beginning of the message body and the end paragraph tags, <br data-mce-bogus="1"></p>, at the end of the message body. There was no other paragraph tags in the message body between paragraphs. There was only the simple break tag, <br>, without the code block "data-mce-bogus="1"".
By the way, <p></p> are browser HTML tags that define a paragraph. Browsers automatically add some space (margin) before and after each <p> element. The size of these margins can be modified with the margin properties in cascading style sheets (CSS).
There may be some issues in viewing SaM messages created with only text. I don't know whether it happens when the message is sent by SaM or at the recipient's message client. If the client defaults to text only then SaM paragraph formatting is possibly lost and the HTML paragraph tag space is lost. But if the client defaults to HTML then the space coded by HTML tags are present.
On the other hand there is the issue I see. My email client is MS Outlook and I have the default view to be HTML. When I get SaM messages there appears there are extra spaces (margins) added between paragraphs. The margins could also be just larger. I have not looked at the code for these messages but the way Outlook displays the message tells me there are some HTML formatting issues for paragraphs.