<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:ross.johnson@homemail.com.au" title="Ross Johnson <ross.johnson@homemail.com.au>"> <span class="fn">Ross Johnson</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Update or correct help for features"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=120200">bug 120200</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>ross.johnson@homemail.com.au
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Update or correct help for features"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=120200#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Update or correct help for features"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=120200">bug 120200</a>
              from <span class="vcard"><a class="email" href="mailto:ross.johnson@homemail.com.au" title="Ross Johnson <ross.johnson@homemail.com.au>"> <span class="fn">Ross Johnson</span></a>
</span></b>
        <pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=175244" name="attach_175244" title="List of duplicate keys in the "hid2files.js" file">attachment 175244</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=175244&action=edit" title="List of duplicate keys in the "hid2files.js" file">[details]</a></span>
List of duplicate keys in the "hid2files.js" file

This seems like an appropriate place to record this for anyone working on Help
pages.

The attachment I've uploaded is the output of:

sed -n "s;^\('[^']*'\):'.*$;\1;p" hid2file.js | sort | uniq -dc

It shows only those keys that appear more than once in the file, with the
number of occurrences shown in the left-most column.

The "hid2files.js" file is a javascript array that uses strings as the keys. It
cannot have duplicate keys in it. The documentation on the .xhp source help
files also specifically notes that bookmark hid branch values must be unique.
So, for example, there can only be one <bookmark branch="hid/.uno:MergeCells"/>
throughout all of the .xhp files.

I'm guessing that it is the last duplicate of a key whose value results in the
page seen by users. It is the case in the two examples I've seen recently. 

There are 152 separate keys that appear more than once. There are at least this
many errant bookmarks in .xhp files and possibly that many help pages that have
fallen into the cracks and never seen.

The affected pages need to be consolidated together into single .xhp files
using the <switch> element to select the content that is displayed for a given
module.</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>