Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release: n/a
First of all it was not very easy to find out in which situation this problem exactly appears. But I was able to reproduce it when creating a topic in the following way:
- Create a new Wiki topic and make sure you have selected a topic parent
- Switch to the FosWiki markup editor. Add the following text to the topic:
<!--
This is the first comment rule
-->
This is a normal rule!
-- Main.AdminUser - 30 Mar 2011
- Make sure the HTML comment tags are on the first lines of the topic.
- Save the topic
- Edit the topic the same topic and add the following text between the comments and “This is a normal…”:
%TOC%
---++!! Normal Rule
Another line of text.
- Check the “force new revision” check-box and save the topic.
- Re-edit the topic and change the following line from
--Main.AdminUser- 30 Mar 2011
to
--Main.OtherUser 30 Mar 2011
- Check the “force new revision” check-box and save the topic.
- Re-edit the topic.
- Add the following between %TOC%% and the header
--++!! Normal Rule
:
---
dasdsasdasda
---
- Check the “force new revision” checkbox and save the topic.
- Click on history. Only Revision 4, 2 and 1 are shown. Revision 3 is hidden. When viewing the HTML source of the history page, you will see that the HTML that is generated to display revision 3 is between HTML tags.
Although same problems also appear when creating a topic with other combinations of the Wiki markup rules, for now I only had the broken history view when using the HTML comment tags on the first lines of the a topic.
I also attached a screenplay video of this sample.
--
NathanSanders - 30 Mar 2011