01481: comment with anchor crashes include processing

Summary: comment with anchor crashes include processing
Created: 2022-09-04 14:31
Status: Closed - not a bug, replied
Category: Bug
Priority: 2
Version: 2.3.11
OS: PHP Version 7.4.28, Apache/2.4.53, kernel 5.16.16-100.fc34.x86_64

Description: placing an anchor inside a comment (>><<) into an included section breaks the master document which tries to include that section.

(has nothing to do with my original test of stacking includes)



It doesn't crash, it includes the >>comment<< line in the current page and everything after it is in the page, but inside a hidden <div> element -- check the HTML source.

To exclude the comment markup from being included, place the end anchor on the same line like this: >>comment<<[[#end]]. --Petko