PDA

View Full Version : LIST inside a LIST , Cant figure it out



Samarex
May 27th, 2016, 11:30
Trying to make a list inside a list but don't seem to work the way I thought it would





<h>How to Read a Racial Entry</h>
<p>Each major race chapter is broken into a number of entries based on ethnic group or subrace. The information presented in these entries generally follows the order described here. If a race does not have an entry for a category (such as racial feats), the header is omitted.</p>
<list>
<li><b>MAJOR RACE INFORMATION</b>The eight major races described in this book each begin with a general overview of the race’s culture, outlook, and history. Each subrace or ethnic group description contains more specific and detailed information on these topics for the specific race.</li>

<li><b>RACIAL DATA</b>Each ethnic group, subrace, or minor race begins with a short set of entries offering a quick synopsis of the race’s game characteristics.
<list>
<li><b>Regions:</b>Regions in which the subrace or ethnic group is found. A character of this race or ethnicity may choose a region listed here as his or her home region, as described in the xxx Campaign Setting. In the case of a human ethnic group, any region in which the group is present as the primary or secondary population may be selected. New regions are italicized and appear at the end of the racial entry.
(would also like this a second line in list line)Automatic and bonus languages are determined by your choice of home region</li>

<li><b>Racial Feats:</b>Any new feats introduced in this book that are specific to the race at hand are listed here.</li>

<li><b>Racial Prestige Classes:</b>If there are any prestige classes specifically associated with the race, these are noted here</li>

<li><b>Level Adjustment:</b>If the race or subrace comes with a level adjustment, it is given here. If that race or subrace has racial Hit Dice (that is, a typical member of that race starts play with more than the single HD of most player character races), its effective character level is given as well, combining its level adjustment and racial Hit Dice. See page 6 for details on how level adjustments and ECL affect character level and advancement</li>
</list>
</li>
</list>
<h>HISTORY</h>

It comes out with all the "*" lined up as seen in attachment, But I was looking to get the "Regions thru Level Adjustments" to be indented more than the other list lines
Any Help

Using https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_lists2 (www.w3schools.com/tags/tryit.asp?filename=tryhtml_lists2)
Thanks
Samarex

damned
May 27th, 2016, 11:38
Fantasy Grounds supports only a limited subset of HTML syntax and formatting. I doubt this can be done the way you want to do it.

Samarex
May 27th, 2016, 11:41
Ok Thanks for the quick responce. Will figure something else out.....

Trenloe
May 27th, 2016, 15:16
See the "Internal Representation" section here: https://www.fantasygrounds.com/refdoc/formattedtextcontrol.xcp for what markup is supported within a formatted text control. It mentions in The <li> tag "Supports a numerical indent attribute."

So, you can use <li ident="2"> etc.. For example (taking your XML above):


<h>How to Read a Racial Entry</h>
<p>Each major race chapter is broken into a number of entries based on ethnic group or subrace. The information presented in these entries generally follows the order described here. If a race does not have an entry for a category (such as racial feats), the header is omitted.</p>
<list>
<li><b>MAJOR RACE INFORMATION </b>The eight major races described in this book each begin with a general overview of the race's culture, outlook, and history. Each subrace or ethnic group description contains more specific and detailed information on these topics for the specific race.</li>
<li><b>RACIAL DATA </b>Each ethnic group, subrace, or minor race begins with a short set of entries offering a quick synopsis of the race's game characteristics.</li>
<li indent="1"><b>Regions: </b>Regions in which the subrace or ethnic group is found. A character of this race or ethnicity may choose a region listed here as his or her home region, as described in the xxx Campaign Setting. In the case of a human ethnic group, any region in which the group is present as the primary or secondary population may be selected. New regions are italicized and appear at the end of the racial entry. (would also like this a second line in list line)Automatic and bonus languages are determined by your choice of home region</li>
<li indent="2"><b>Racial Feats: </b>Any new feats introduced in this book that are specific to the race at hand are listed here.</li>
<li indent="3"><b>Racial Prestige Classes: </b>If there are any prestige classes specifically associated with the race, these are noted here</li>
<li indent="4"><b>Level Adjustment: </b>If the race or subrace comes with a level adjustment, it is given here. If that race or subrace has racial Hit Dice (that is, a typical member of that race starts play with more than the single HD of most player character races), its effective character level is given as well, combining its level adjustment and racial Hit Dice. See page 6 for details on how level adjustments and ECL affect character level and advancement</li>
</list>
<h>HISTORY</h>

Gives:

14189

Note that indent="1" is the default (i.e. the same as if there is no "indent" attribute) and that you can't change the bullet, just the indentation.

leozelig
May 27th, 2016, 15:20
Well, there is a little bit of a back-door way to get two levels of list bullets... Use the ISO-8859 symbol code for middle dot (ampersand-pound-183-semicolon) to create the first level, then follow with a list for the second level. The dot items will be double-spaced, and the list items will be single-spaced, but it might be better than nothing.





Edit: Looks like Trenloe's got you covered!

Samarex
May 28th, 2016, 01:48
See the "Internal Representation" section here: https://www.fantasygrounds.com/refdoc/formattedtextcontrol.xcp for what markup is supported within a formatted text control. It mentions in The <li> tag "Supports a numerical indent attribute."

So, you can use <li ident="2"> etc.. For example (taking your XML above):


<h>How to Read a Racial Entry</h>
<p>Each major race chapter is broken into a number of entries based on ethnic group or subrace. The information presented in these entries generally follows the order described here. If a race does not have an entry for a category (such as racial feats), the header is omitted.</p>
<list>
<li><b>MAJOR RACE INFORMATION </b>The eight major races described in this book each begin with a general overview of the race's culture, outlook, and history. Each subrace or ethnic group description contains more specific and detailed information on these topics for the specific race.</li>
<li><b>RACIAL DATA </b>Each ethnic group, subrace, or minor race begins with a short set of entries offering a quick synopsis of the race's game characteristics.</li>
<li indent="1"><b>Regions: </b>Regions in which the subrace or ethnic group is found. A character of this race or ethnicity may choose a region listed here as his or her home region, as described in the xxx Campaign Setting. In the case of a human ethnic group, any region in which the group is present as the primary or secondary population may be selected. New regions are italicized and appear at the end of the racial entry. (would also like this a second line in list line)Automatic and bonus languages are determined by your choice of home region</li>
<li indent="2"><b>Racial Feats: </b>Any new feats introduced in this book that are specific to the race at hand are listed here.</li>
<li indent="3"><b>Racial Prestige Classes: </b>If there are any prestige classes specifically associated with the race, these are noted here</li>
<li indent="4"><b>Level Adjustment: </b>If the race or subrace comes with a level adjustment, it is given here. If that race or subrace has racial Hit Dice (that is, a typical member of that race starts play with more than the single HD of most player character races), its effective character level is given as well, combining its level adjustment and racial Hit Dice. See page 6 for details on how level adjustments and ECL affect character level and advancement</li>
</list>
<h>HISTORY</h>

Gives:

14189

Note that indent="1" is the default (i.e. the same as if there is no "indent" attribute) and that you can't change the bullet, just the indentation.

Thank You Trenloe, That Works Perfect...........

damned
May 28th, 2016, 01:57
Nice!