<document source="test data">
<section ids="if-test" names="if test">
<title>
If Test
<paragraph>
Run with trusted=1.
<paragraph>
Make sure \n\
<literal>
perl
directive can't take privileges away from \n\
<literal>
if
.
<system_message level="1" line="8" source="test data" type="INFO">
<paragraph>
No directive entry for "perl" in module "Text::Restructured::Directive".
Trying "perl" as canonical directive name.
<paragraph>
Trusted is not required for safe operations like the following.
<system_message level="1" line="12" source="test data" type="INFO">
<paragraph>
No directive entry for "if" in module "Text::Restructured::Directive".
Trying "if" as canonical directive name.
<paragraph>
This text should appear, since we're using the 'dom' writer.
<paragraph>
However, it is required for things like opening a file.
<paragraph>
This text \n\
<emphasis>
should
appear, since we should have privileges to run
unsafe operations.
<paragraph>
Make sure we can't take away privileges in previous \n\
<literal>
if
directive.
<paragraph>
This text \n\
<emphasis>
should
also appear.
<paragraph>
A paragraph.