HTML Formatter doesn't retain paragraph line spacing

6 posts, 0 answers
  1. Jarred Froman
    Jarred Froman avatar
    57 posts
    Member since:
    Aug 2008

    Posted 19 Sep 2011 Link to this post

    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
  2. Boby
    Admin
    Boby avatar
    595 posts

    Posted 22 Sep 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Jarred Froman
    Jarred Froman avatar
    57 posts
    Member since:
    Aug 2008

    Posted 22 Sep 2011 Link to this post

    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
  5. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 28 Sep 2011 Link to this post

    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 >>

  6. Pierre
    Pierre avatar
    2 posts
    Member since:
    Aug 2012

    Posted 02 Oct 2012 Link to this post

    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!
  7. Mihail
    Admin
    Mihail avatar
    192 posts

    Posted 08 Oct 2012 Link to this post

    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.

Back to Top
DevCraft banner