-
Notifications
You must be signed in to change notification settings - Fork 15
DeclareCategoryCollection causes strange behavior #170
Copy link
Copy link
Closed
Description
If you try to run AutoDoc on the following code snippet
#! @Chapter Test
#! @Section Some categories
#! Intro text
DeclareCategory("MyThings", IsObject);
DeclareCategoryCollections("MyThings");
Now here is some text with a bunch of &!$%*!/ weird things in it. You'll
see that it ends up somewhere, shall we say, very unexpected.
it produces the following strange-looking error:
XML Parse Error: Line [XX] Character 86
Original file: ./crum/_Chapter_Test.xml, line number [YY].
-----------
<Filt Arg="arg" Name="MyThings" Label="for ;Now here is some text with a bunch of &!$%*!/ weird things in\
it. You'llsee that it ends up somewhere"/>
^
-----------
no semicolon in entity reference
It appears that AutoDoc is confused and thinks there is another DeclareCategory on the DeclareCategoryCollections line, and then its argument parsing goes haywire. I will shortly post a pull request that adds handling for DeclareCategoryCollections.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels