This question is locked. New answers and comments are not allowed.
Hi,
I have some questions on line spacing issues. When in the textbox, if you hit enter, it inserts a 'double space' -- or a paragraph. If you do this multiple times, to get multiple blank lines in between text -- the multiple blank lines sometimes appear to be saved but when the email is sent out with the code, the blank lines are removed and the text just has one 'double' (or paragraph) spacing, not multiple. The only time multiple line spacing is saved is if you do a shift+enter to get a <br> inserted. Is there something we can do to allow if you hit just enter multiple times that it will save that multiple line spacing and keep that formatting when sent out? What you see is not always what you get!!
Thanks
I have some questions on line spacing issues. When in the textbox, if you hit enter, it inserts a 'double space' -- or a paragraph. If you do this multiple times, to get multiple blank lines in between text -- the multiple blank lines sometimes appear to be saved but when the email is sent out with the code, the blank lines are removed and the text just has one 'double' (or paragraph) spacing, not multiple. The only time multiple line spacing is saved is if you do a shift+enter to get a <br> inserted. Is there something we can do to allow if you hit just enter multiple times that it will save that multiple line spacing and keep that formatting when sent out? What you see is not always what you get!!
Thanks
5 Answers, 1 is accepted
0
Hi Melissa,
This, to our knowledge, is the proper way to export them and the browsers we have tested it with show the exported document as expected.
Could you please verify that the cause of the issue is the way HtmlFormatProvider exports the document and not in the way you are processing it afterwards when sending the e-mail. If that is the case, we would appreciate it if you get back to us with more information on what you would consider the proper behavior when exporting empty paragraphs. Best wishes,
Iva
the Telerik team
I tested how empty paragraphs are exported to HTML in the latest version of the control and they are present in the document as paragraphs containing a span with a non-breaking space:
<p class="p_CC664AAA"><span class="s_E6FD2046"> </span></p>This, to our knowledge, is the proper way to export them and the browsers we have tested it with show the exported document as expected.
Could you please verify that the cause of the issue is the way HtmlFormatProvider exports the document and not in the way you are processing it afterwards when sending the e-mail. If that is the case, we would appreciate it if you get back to us with more information on what you would consider the proper behavior when exporting empty paragraphs. Best wishes,
Iva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Melissa
Top achievements
Rank 1
answered on 21 Sep 2011, 12:08 PM
When you say it shows them 'as expected' -- what is your as expected? with two, three or four line breaks? or just one?
0
Melissa
Top achievements
Rank 1
answered on 21 Sep 2011, 03:40 PM
What version did you test this on? you say the latest one, can you tell me which one? We can get it to work correctly (the spacing is correct) with Q3 2010 but with Q2 2011 it doesn't work correctly....
So just wondering what version you tried it on. Thanks!
So just wondering what version you tried it on. Thanks!
0
Melissa
Top achievements
Rank 1
answered on 26 Sep 2011, 03:26 PM
Any answer on the two follow up questions I had?
0
Hi Melissa,
You can see on the fly what HTML HtmlFormatProvider will produce in our data-binding demo, which uses the dlls from the latest official release.
This HTML when rendered in a browser shows the same number of paragraphs, defined in the HTML file/string. In this case, it adds 3 new empty paragraphs one after the other, which is the behavior we would expect.
Furthermore, I tested how empty paragraphs were exported in the Q3 2010 (2010.3 1110) version of the control and it is exactly the same. Could you check how empty paragraphs are exported in the version of the control you are using and let us know if it is incorrect. Greetings,
Iva
the Telerik team
By latest version I meant Q2 2011 (2011.2 712) and the development version. The latest version now is the recently released service pack for Q2 2011 (2011.2 920) and it also exports each empty paragraph as in the code-snippet from my previous post. Therefore, if you have several adjacent empty paragraphs, they will be exported like this:
<p class="p_CC664AAA"><span class="s_E6FD2046"> </span></p><p class="p_CC664AAA"><span class="s_E6FD2046"> </span></p><p class="p_CC664AAA"><span class="s_E6FD2046"> </span></p>You can see on the fly what HTML HtmlFormatProvider will produce in our data-binding demo, which uses the dlls from the latest official release.
This HTML when rendered in a browser shows the same number of paragraphs, defined in the HTML file/string. In this case, it adds 3 new empty paragraphs one after the other, which is the behavior we would expect.
Furthermore, I tested how empty paragraphs were exported in the Q3 2010 (2010.3 1110) version of the control and it is exactly the same. Could you check how empty paragraphs are exported in the version of the control you are using and let us know if it is incorrect. Greetings,
Iva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>