User story: I am a project maintainer. I need to add my own non-visible metadata to Zim wiki files, for example a "SPDX-License-Identifier" value.
Steps to reproduce:
project.txt in a text editorContent-Type: text/x-zim-wiki
Wiki-Format: zim 0.4
SPDX-License-Identifier: CC-BY-SA-4.0
====== Project ======
Wiki page starts here.
What should happen:
What happens instead:
Notes:
In case #3 all headers disappear
Afraid I have not specifically tested for custom headers but will do so
I believe this may be a side effect of 8d217a5a7117944b3aee7289adb1af5a806c2a9d
Re-opening: although the format headers are preserved now (see issue #3), the Creation-Date header goes missing as well as custom headers.
Looks like a stupid mistake in the test case. Tested that re-using the same parse-tree these headers are preserved. However if page is edited a new parse-tree is set, which will not have these headers. So need to preserve them in the page object rather than in the parse-tree object.