<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Direct character formatting is getting copied into paragraph level"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=143904">143904</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Direct character formatting is getting copied into paragraph level
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.3.0.0 alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>santha.balazs@simonyi.bme.hu
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
When inserting a new row in a table, Writer copies the row's formattings both
at the level of paragraphs and characters, even though we should avoid to copy
the direct character formattings.




Steps to Reproduce:
1. Create an empty Writer Document
2. Create a table
3. Write "TEXTREDTEXT" in the last cell
4. Select the portion "RED" from the text, and apply a specific Font color on
it 
5. Place the cursor in the last cell, and insert a new row after it (simply
press TAB to do this) 
6. Write something into the new last cell of the table

Actual Results:
The newly typed text will be the same color, what you set in as a direct
character formatting.

Expected Results:
The newly typed text should be black (default).


Reproducible: Always


User Profile Reset: No



Additional Info:
This bug is a regression of
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Redo of adding table rows breaks table style after cut/paste action"
   href="show_bug.cgi?id=143244">https://bugs.documentfoundation.org/show_bug.cgi?id=143244</a> 

The reason why this regression happened is that: MSO Word uses a paragraph mark
symbol (i.e the control character than can be configured to be shown), which is
imported in Writer as a 0-length hint. To fasten up the import of DOCX tables,
the core applies the formattings from this 0-length attribute on paragraph
level, directly before inserting a new row. 
All in all, to solve this bug, we need to make sure, that we only copy the
formattings, if it is a 0-length hint.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>