-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable nested roles Refactor role to be an array instead of a string to allow nesting of roles. Use the indent method to format constant list tables. Add tests for regular, table formatted and nested role containing variablelists. * Make role property private Add methods to push, pop and get role, and use these for all role accesses. Make underlying $role array private. Add comment on $role array being a LIFO stack. --------- Co-authored-by: haszi <haszika80@gmail.com>
- Loading branch information
Showing
6 changed files
with
179 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<chapter xml:id="variablelist-rendering"> | ||
|
||
<section> | ||
<para>1. Variablelist with no role</para> | ||
<variablelist> | ||
<varlistentry xml:id="constant.variablelist-test-constant"> | ||
<term><constant>VARIABLELIST_TEST_CONSTANT</constant></term> | ||
<listitem> | ||
<simpara> | ||
Description of constant | ||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</section> | ||
|
||
<section> | ||
<para>2. Variablelist with role="constant_list"</para> | ||
<variablelist role="constant_list"> | ||
<varlistentry xml:id="constant.variablelist-test-constant-in-constant-list"> | ||
<term><constant>VARIABLELIST_TEST_CONSTANT_IN_CONSTANT_LIST</constant></term> | ||
<listitem> | ||
<simpara> | ||
<literal>literal</literal> will add its own "role" | ||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry xml:id="constant.variablelist-test-constant-in-constant-list2"> | ||
<term><constant>VARIABLELIST_TEST_CONSTANT_IN_CONSTANT_LIST2</constant></term> | ||
<listitem> | ||
<simpara> | ||
Role should have not been overwritten by literal | ||
</simpara> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</section> | ||
|
||
</chapter> |
Oops, something went wrong.