<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 - Invalid behaviour when inserting references to numbered paragraphs"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=117999">117999</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Invalid behaviour when inserting references to numbered paragraphs
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </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>antoniak.piotr@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Trying to prepare numbered reference list as a list of numbers in brackets,
like this [1]. To obtain it I customized a list style adding "before" and
"after" section. Then, trying to insert a reference to numbered Paragraph, with
no context, I got [1], [2], etc, which is obviously incorrect. 
The fun part is not specifying "before" section. Then the list is numbered like
this "1]", "2]", etc, but the reference is correct and consist a number only.

Steps to Reproduce:
1.Open new text document,
2.Create a short paragraph of random text,
3.Create a list of numbered items (apply, i.e., Numbering123 style to it),
4.Modify the applied style adding before and after fields to obtain numbering
like this [1],
5.Insert a reference to any of the numbered item from the list. Use "Number (no
context)" reference type. 



Actual Results:  
[1], [2], etc.

Expected Results:
1, 2, etc


Reproducible: Always


User Profile Reset: No



Additional Info:
The actual problem is when you want insert a range of such numbered item, i.e.
[1-10]. Instead of expected [1-10] one gets [[1]-[10]] which is incorrect.

Version: 6.0.4.2 (x64)
Build ID: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: pl-PL (pl_PL); Calc: group


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101
Firefox/61.0</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>