<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 - top border padding produces additional top margin if paragraph is first in section"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107497">107497</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>top border padding produces additional top margin if paragraph is first in section
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>5.2.6.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86 (IA32)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (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>rb.henschel@t-online.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=132924" name="attach_132924" title="Erroneous margin at top of section">attachment 132924</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=132924&action=edit" title="Erroneous margin at top of section">[details]</a></span>
Erroneous margin at top of section

If a paragraph style sets a top "Spacing to Content" in tab "Borders", then the
paragraph gets an additional top margin, if it is used as first paragraph in a
section. This gives problems in master documents, because the child document it
always put in a section.

Open attached document. It contains a paragraph style "Text body Border" with
blue background. All margin settings in the tab "Indent&Spacing" are 0cm and
line spacing is "single". So the paragraphs should follow each other without
margins.
Notice, that the first paragraph in the section has an additional top margin.
If you change the top border spacing from 3cm to another value, you will
notice, that this is directly reflected to this margin.
The spacing between border and content is a padding and must not have any
influence on margins.</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>