I have a fairly basic custom list in Sharepoint 2010 which contains a rich text field. I have customized the form with Infopath. Now when I export to Excel I find blank lines preceding the text.
After some testing, I have found that an extra blank line appears each time this field is edited. Eventually the text isn't even visible within excel as the field has grown so long that all of the real text is pushed off screen. These blank lines do not display anywhere within Sharepoint, only in Excel.
I have been able to duplicate this result in multiple different sharepoint 2010 environments, so it doesn't seem to be environmental in any way.
Does anyone know why this is happening and how I can fix it? Changing to plain text fixes the problem, but this is not ideal as the list should have rich text.
Edit:
Looking at the HTML of the field value on any of the Sharepoint screens shows that it is in fact nesting the value within another div with each save. After multiple saves the value looks something like this:
<div class="ExternalClass46C578CDD8CE4DDFB6D2482549C61A21">
<div class="ExternalClass...">
<div class="ExternalClass...">
<div class="ExternalClass...">
<div class="ExternalClass...">
<div class="ExternalClass...">
<div class="ExternalClass...">
<div class="ExternalClass...">
Edit2: It appears that the issue only occurs with Enhanced Rich Text and not regular Rich Text. However, changing from Enhanced to regular Rich Text does not fix existing records which already have the issue. It stops this from happening on new records and new edits but will not clear up the already deeply nested divs.