Skip to content

DeclareCategoryCollection causes strange behavior #170

@gwhitney

Description

@gwhitney

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions