View Full Version : PAR5E Tables and HTML tags

July 26th, 2014, 01:38
PAR5E parses the ';' for tables without recognizing HTML tokens, resulting in oddness if one needs to embed a special character in the table.

For example:

#h;Random Height and Weight
#th;Race;Base Height;Height Modifier;Base Weight;Weight Modifier
#tr;Human;4'8&quote;;+2d10;110 lb.;x (2d4) lb.
#tr;Dwarf, hill;3'8";+2d4;115 lb.;x (2d6) lb.
#tr;Dwarf, mountain;4';+2d4;130 lb.;x (2d6) lb.
#tr;Elf, high;4'6";+2d10;90 lb.;x (1d4) lb.
#tr;Elf, wood;4'6";+2d10;100 lb.;x (1d4) lb.
#tr;Halfling;2'7";+2d4;35 lb.;x 1 lb.
Results in a view like the attached.

If I simply use the " character, PAR5E escapes it rather than converting it, so I end up with \" in my text.

Either PAR5E should properly encode characters like " (turning it into ") rather than escaping them; or it should somehow recognize such tokens and ignore them when looking for a ';' in a parsed line.

El Condoro
July 26th, 2014, 01:49
I think the parser is configured to use the specific approach of the texts (Basic Rules, PHB etc.), so the abbreviation of 'feet' (unit of length) is 'ft.' - it won't take '. Like 'pounds' is 'lb.' and not #.

[Edit] Even though the table on p. 33 uses 4' 8" etc.

July 26th, 2014, 01:51
For that table the Basic rules use ' not ft. I'm copying direct from the PDF :) Also, the parser has no problem with ', it's " that it doesn't like...

July 26th, 2014, 01:59
PAR5E is written in Java so if its a reserved word or symbol in Java or Javascript, change it to be safe. :)