Unplanned
Last Updated: 17 Jan 2020 09:16 by ADMIN
Dimitar
Created on: 17 Jan 2020 09:16
Category: WordsProcessing
Type: Bug Report
0
WordsProcessing: The empty lines are not converted properly from RTF to HTML

The empty lines are not converted properly from RTF to HTML

Workaround: 

private static void FixEmptyParagraphs(RadFlowDocument document)
{
    var paragraphs = document.EnumerateChildrenOfType<Paragraph>();



    foreach (var paragraph in paragraphs)
    {
        if (paragraph.Inlines.Count < 1)
        {
            char nbsp = (char)160;
            paragraph.Inlines.AddRun(nbsp.ToString());
        }
    }
}



0 comments