Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Problem with <code> section in footnote #252

Open
drwetter opened this issue Mar 22, 2020 · 6 comments
Open

Bug: Problem with <code> section in footnote #252

drwetter opened this issue Mar 22, 2020 · 6 comments
Labels

Comments

@drwetter
Copy link

(copied from #229 (comment))

I ran into the same issue as in #229. My plugin is from July 2019.

If I open the document straight away with libreoffice I get the (sorry, German) message Formatfehler in Teildokument content.xml bei 2324,10(Zeile,Spalte) in der Datei entdeckt. . When I open in the archive the content with ark I get a similar message in English error on line 2324 at column 10: Opening and ending tag mismatch: note-body line 0 and p.

xmllint:

content.xml:2324: parser error : Opening and ending tag mismatch: note-body line 2323 and p
</text:p></text:note-body></text:note><text:p text:style-name="Text_20_body">, w
         ^
content.xml:2324: parser error : Opening and ending tag mismatch: note line 2323 and note-body
</text:p></text:note-body></text:note><text:p text:style-name="Text_20_body">, w
                          ^
content.xml:2324: parser error : Opening and ending tag mismatch: p line 2323 and note
</text:p></text:note-body></text:note><text:p text:style-name="Text_20_body">, w
                                      ^

I can't hand over the documents, sorry. But I had in the two documents in question a footnote (()) which contained <code> sections. Once I converted the footnote from (()) --> () it worked.

So I guess that should be pretty much reproducible.

@lpaulsen93
Copy link
Owner

lpaulsen93 commented Mar 24, 2020

The issue can be re-produced by exporting a wiki page with the following content:

You can add footnotes ((<code>This is a footnote</code>)) by using double parentheses.

@lpaulsen93 lpaulsen93 added the bug label Mar 24, 2020
@drwetter
Copy link
Author

Any progress on this?

@lpaulsen93
Copy link
Owner

No, no news yet.

lpaulsen93 added a commit that referenced this issue Aug 30, 2020
It could happen that usage of footnotes broke the document by generating
a document that did not conform to the ODT format specification. To be more
precise it could happen that paragraph elements were not closed properly.
@lpaulsen93
Copy link
Owner

@drwetter I hope this is fixed now, please re-test. I did not publish this change yet so please manually install the master branch for testing (=manually install this version https://github.com/LarsGit223/dokuwiki-plugin-odt/archive/master.zip).

@drwetter
Copy link
Author

drwetter commented Sep 8, 2020

who is LarsGit223? I got a 404 on https://github.com/LarsGit223 , so also if I can download the master.zip. That's not trustworthy to me.

@lpaulsen93
Copy link
Owner

lpaulsen93 commented Sep 8, 2020

That's me. Just changed my username a few days ago. It looks like repository addresses are forwarded from my old username but not the profile/main page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants