Won't Fix
Last Updated: 10 Jul 2019 15:49 by ADMIN
ADMIN
Tanya
Created on: 27 Jan 2015 08:25
Category: RichTextBox
Type: Bug Report
2
RichTextBox: Tab stops are not exported to HTML with proper width
On export to HTML tab stops are converted to non-breaking spaces ( ). Sometimes the width of the all nbsp-s becomes different than the width of the tab stop. When document which contains grid-like data is exported to HTML its columns are not aligned.
1 comment
ADMIN
Ivan Ivanov
Posted on: 10 Jul 2019 15:49

Since the tab stops algorithm is applied over the whole paragraph, but not on a single line, tabs’ size is dependent on the current layout. Thus, calculating the “real” tabs’ width when exporting to html, would be incorrect for any paragraph that is arranged on more than one line. To avoid such discrepancy, RadRichTextBox uses the tab stops’ width instead. A similar approach is also used in MS Word.

As an easy workaround for tabular formatting of a html file, one can use an invisible table to model this behavior.