ForEach jsp tag is messed up when switching saving a Paragraph rule - forEach end tag is followed by forEach start tag
I have a paragraph rule which has forEach jsp tag defined with page list. Every time i switch the "Source" button, it gives me an error with forEach tag. When i save the rule, the forEach end tag is moved after forEach tag.
Actual Code:
<pega:foreach name=".BusinessChannelforCurrencyList">
<pega:withembedded name="$this">
Some code to display data
</pega:withembedded></pega:foreach>
After save:
<pega:foreach name=".BusinessChannelforCurrencyList">
<pega:withembedded name="$this">
</pega:withembedded></pega:foreach>
Some code to display data
Due to this issue, it is taking lot of time to edit a paragraph rule which has forEach tags in it.
any workaround to this issue?