This is a migrated thread and some comments may be shown as answers.

HTML Formatter doesn't retain paragraph line spacing

5 Answers 69 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Jarred Froman
Top achievements
Rank 1
Jarred Froman asked on 19 Sep 2011, 08:59 PM
When using the HTML formatter, the paragraph line spacing doesn't seem to get retained in the HTML output.  This doesn't appear to have been working over the last couple of versions.

-Jarred Froman

5 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 22 Sep 2011, 01:24 PM
Hello Jarred Froman,
This indeed was never supported. We will consider implementing it for the future releases.
We have added points to your account for the suggestions. Don't hesitate to contact us if you have other questions.

Regards,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jarred Froman
Top achievements
Rank 1
answered on 22 Sep 2011, 05:42 PM
Hi Boby,

I appreciate the points, however, I believe this was supported a few versions back and it was just pointed out by one of our customers that it no longer works.  It would be very much appreciated if this could be fixed sooner as a bug fix rather than pushed off as a feature request.

Thank You,
-Jarred Froman
0
Iva Toteva
Telerik team
answered on 28 Sep 2011, 08:48 AM
Hi Jarred Froman,

The persistence of paragraph line spacing has been implemented for XAML, docx and RTF only. HTML import and export could not have worked in previous versions of the control.
As Boby assured you, we have added it to our to-do list and will try to implement it for one of the next releases, hopefully in Q3 2011.

Regards,
Iva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Pierre
Top achievements
Rank 1
answered on 02 Oct 2012, 10:52 AM
Hello, I'm working for the leader of french e-commerce (vente-privee.com).
I want to use your RichTextBox component to provide HTML content. I'm using the Q2 2012 version of the product and unfortunalty the persistence of paragraph line spacing does'nt work. Is this feature implemented?

Thank you for your help!
0
Mihail
Telerik team
answered on 08 Oct 2012, 10:27 AM
Hello Pierre,

There are two types of spacing - line spacing (the space between lines in the same paragraph) and paragraph spacing (the space between adjacent paragraphs). Judging from the screenshots, the problem you are observing is with spacing after (margin-bottom in HTML). There is a bug in the current version that the default spacing after of the editor (which has 12px spacing after) is not applied to paragraphs in a table cell. This issue has been logged and you can track our progress in PITS here. However, when exporting the document, the format provider infers the default spacing of the document and uses it when exporting the paragraphs in the table, causing them to be exported with 12 px spacing after.

What you can do is to set the ParagraphDefaultSpacingAfter of the document to 0 which will set the default spacing after to 0 and the document will look the same when viewed in the editor and exported.

I hope this information is helpful for you.

All the best,
Mihail
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Jarred Froman
Top achievements
Rank 1
Answers by
Boby
Telerik team
Jarred Froman
Top achievements
Rank 1
Iva Toteva
Telerik team
Pierre
Top achievements
Rank 1
Mihail
Telerik team
Share this question
or