Created attachment 59041 [details]
An image of the issue and the insert fields dialog showing that it occurs elsewhere as well.
If a heading has a footnote, and is added elsewhere by means of a chapter name field (in the header for example), the footnote reference number (which is superscript) shows up in the chapter name generated by the field (as regular text).
Steps to reproduce:
1. Make a new document
2. Add some text and make it heading level 1
3. Add a footnote to the heading: Insert -> Footnote/Endnote... -> OK
4. Add a chapter name field: Insert -> Fields -> Other... -> Document -> Chapter -> Chapter Name -> Insert
If a heading is called "Truth in Advertising" and has footnote 1 at the end, it will show up as "Truth in Advertising1"
If a heading is called "Truth in Advertising" and has footnote 1 at the end, it should show up as "Truth in Advertising"
Browser: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0
Created attachment 63214 [details]
test case created in 3.3.4 for chapter name problem
Thanks for bugreport
reproduced in 3.3.4, 3.5.4 and 3.6 beta 1 on Fedora 64 bit (Windows not tested)
character "1" from footnote indicator appears inside of "Chapter name" field
Changing version to 3.3.4 as most early reproduced
It is worth mentioning that most style guides advise against the use of footnotes in headings / chapter titles. Here is what the Chicago Manual of Style 16th Edition says in §1.48:
"Footnote reference numbers or symbols should not appear anywhere in the chapter display. A note that refers to the chapter as a whole should be unnumbered and should precede the numbered notes, whether it appears on the first page of the chapter or in the endnotes (see 14.47). A chapter epigraph, sometimes considered part of the chapter display, may include a note reference, though traditionalists will prefer an unnumbered note."
...and again in §2.20:
"Avoid appending note references to chapter titles (see 1.48)."
Here is what the APA Publication Manual 6th Edition says in §2.12, p.38:
"Do not place footnote numbers in text headings."
Here is what the Australian Style Manual 6th Edition says on p.209:
"Avoid using note identifiers in headings. A note referring to an entire section, chapter or other component of a document should be unnumbered or unmarked and be placed before the numbered (or marked) notes at the base of the page, at the end of the chapter or article, or at the end of the book or document."
Not every possible combination of style devices is good practice.
This, likely, long forgotten bug seems to have been resolved at some point. The bug is not present in LibreOffice 188.8.131.52. If others also don't have this issue anymore, it should be marked resolved.
As per comment 4 and also confirmed under Crunchbang 11 using v184.108.40.206, so RESOLVED as FIXED.