Bug: Cross-reference changes if line-break added

Request For Enhancement, User feedback candidates for wiki
Post Reply
User avatar
CannedMan
Posts: 225
Joined: Wed Aug 04, 2010 12:06 am

Bug: Cross-reference changes if line-break added

Post by CannedMan »

Today I encountered a bug I have never seen before in LO. I am using six different documents for an essay, due to some unwanted file corruptions occuring previously. (Again, thank you so much for saving the contents.) I have all my translations at the end of my main body text file, and at the end of day, I copy this to my appendix file. As expected, all the cross-references in the original file are reported as missing, but this is all solved when they are all merged in the master document. However, something unusual happened when pasting the final cross-reference today: Instead of being changed to ‘Error: Could not find source of reference’ (translated from the Norwegian prompt), the final cross-reference (and only the final one) was changed to cross-reference a custom footnote in the new file (pointing to an asterisk).

Here is how the file is laid out:
  • H1
    • A series of body text paragraphs, most of which begin with a number 1–n
      • To some of these, footnotes unique to this specific file, using the *, †, ‡, § system, starting anew for each page.
There are no cross-references from the original file pointing to any of these symbol set footnotes. The original file uses numbers; the appendix uses symbols.

I was able to reproduce the error (ɔ: not get it to go away) several times. The error was only present for the final paragraph, and not even reloading the file solved it. But then I by accident added a linebreak at the end of the final paragraph in the original document, and when pasting that the error disappeared, correctly referencing the missing footnote from the original file.

So here is how I did it:
  1. I finished writing the cross-referenced translations in the original file.
  2. I pasted the new lines into the appendix.
  3. The final paragraph changed the final cross-reference to point to an (assumed) random footnote in the new document, despite this being a symbol footnote, not a numerical footnote.
  4. After numerous retries at pasting both that single paragraph as well as that final paragraph and some of the paragraphs from above, I added a line-break at the end of the final paragraph in the original document.
  5. I pasted the paragraph(s) with the added linebreak after the final line, and the error disappeared
  6. I was able to repeat it a few times, but after saving I could not reproduce the error.
Apache OpenOffice 4.1.5 / LibreOffice 7.0.0.3 on Windows 10 (x64)
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Bug: Cross-reference changes if line-break added

Post by Hagar Delest »

Can you upload a sample file showing the issue (a zip of them if there is a master doc)? Keep a couple of pages only.
Do you make whole paragraphs cross-references?
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
CannedMan
Posts: 225
Joined: Wed Aug 04, 2010 12:06 am

Re: Bug: Cross-reference changes if line-break added

Post by CannedMan »

Problem is, after I fixed it, I have been unable to reproduce it. The cross-references were to the numbered footnotes, not to passages of text.
Apache OpenOffice 4.1.5 / LibreOffice 7.0.0.3 on Windows 10 (x64)
User avatar
CannedMan
Posts: 225
Joined: Wed Aug 04, 2010 12:06 am

Re: Bug: Cross-reference changes if line-break added

Post by CannedMan »

Today I found out how to reproduce it. The error happens when I paste a paragraph into the new file, and the paragraph contains a footnote. Apologies for the large image following, but it demonstrates quite clearly what happens:
Before pasting, this is what the files look like. Target file is to the right. All cross-references report an error, as they haven’t been joined in the master document yet, but that is as expected.
Before pasting, this is what the files look like. Target file is to the right. All cross-references report an error, as they haven’t been joined in the master document yet, but that is as expected.
After pasting, all previous cross-references get changed to pointing to the dagger.
After pasting, all previous cross-references get changed to pointing to the dagger.
I then tried to paste just the text with Ctrl+Shift+V, then pasted the cross-reference.
After pasting in two rounds, ignoring the dagger footnote, the cross-references in the target file were not muddled.
After pasting in two rounds, ignoring the dagger footnote, the cross-references in the target file were not muddled.
Notice how the dagger is not yet pasted as a footnote.
Apache OpenOffice 4.1.5 / LibreOffice 7.0.0.3 on Windows 10 (x64)
User avatar
CannedMan
Posts: 225
Joined: Wed Aug 04, 2010 12:06 am

Re: Bug: Cross-reference changes if line-break added

Post by CannedMan »

I was then able to manually recreate the footnote, which did not cause any more issues.
I was then able to manually recreate the footnote, which did not cause any more issues.
Every time I simply pasted the dagger, the issue re-occurred.

───

Worth noting is that I, in my main body text, use numbered footnotes, whereas in the appendix, I have opted for the ‘*, †, ‡, §’ system. The appendix thus has cross-references to the numbered footnotes in the main body text, and references within the appendix itself is done with */†/‡/§/**/etc.
Apache OpenOffice 4.1.5 / LibreOffice 7.0.0.3 on Windows 10 (x64)
Post Reply