View Issue Details

IDProjectCategoryView StatusLast Update
0000517WackoWikitext formattingpublic2019-08-16 06:32
Reporteradministrator Assigned Toadministrator  
PrioritynormalSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
Product Version5.5.11 
Target Version5.5.12Fixed in Version5.5.12 
Summary0000517: toc include bug while building body_toc in paragrafica
Descriptionbody_r -> body_toc
The toc of the included page gets parsed in
TAG<h-item>(include)<h-item>99999<h-end>

I changed only the custom delimiter tags and moved the self-link out of body_toc

the current pattern is broken, it includes stuff after the tag in body_toc,
not sure why, this is what breaks the toc for included pages
Additional Informationmy new pattern:
<\!--action:begin-->include\s+.*?page=\"([^\
]+)\".*?(\s+notoc=\"?[^0]\"?)?.*?<\!--action:end-->


test data (boy_r):
<!--notypo--><!--action:begin-->toc numerate=1<!--action:end--><!--/notypo-->

<h2 id="h37-1" class="heading">heading#h37-1</h2>
<!--notypo--><!--action:begin-->include
page="55"<!--action:end--><!--/notypo-->

<!--notypo--><!--action:begin-->include nomark=1
page="55"<!--action:end--><!--/notypo-->

<!--notypo--><!--action:begin-->include page="51"
nowarning=1<!--action:end--><!--/notypo-->

<!--notypo--><!--action:begin-->include page="51"
notoc=1<!--action:end--><!--/notypo-->

<!--notypo--><!--action:begin-->include page="51" notoc="1"
nowarning=1<!--action:end--><!--/notypo-->

<!--notypo--><!--action:begin-->include page="54" nowarning=1
notoc=1<!--action:end--><!--/notypo-->


But how I change the pattern so it will accept other arguments before notoc=1,
e.g. {{include page="TAG" nowarning=1 notoc=1}}?
TagsNo tags attached.

Issue History

Date Modified Username Field Change
2019-08-16 06:31 administrator New Issue
2019-08-16 06:31 administrator Status new => assigned
2019-08-16 06:31 administrator Assigned To => administrator
2019-08-16 06:32 administrator Status assigned => resolved
2019-08-16 06:32 administrator Resolution open => fixed
2019-08-16 06:32 administrator Fixed in Version => 5.5.12
2019-08-16 06:32 administrator Note Added: 0001042