Skip to content

Latest commit

 

History

History
78 lines (51 loc) · 1.61 KB

formatting.rst

File metadata and controls

78 lines (51 loc) · 1.61 KB

Formatting

Simple formatting

Just use replacement strings listed in the table.

Advanced formatting

Replacement string Type
{num} int_
{name} str_
{symbol} str_
{variant} str_
{current_data} GroupData_
{count} int_
{names} list of str_
{symbols} list of str_
{variants} list of str_
{all_data} list of GroupData_

int

See Format Specification Mini-Language_

str

See Format Specification Mini-Language_

list of str

format_spec ::= [str_format_spec][:[join_str]]
str_format_specstr
join_strstr used to join list elements

GroupData

format_spec ::= [format_str]
format_str — arbitrary format string, where the only replacement strings are {num}, {name}, {symbol} and {variant}.

list of GroupData

format_spec ::= [group_data_format_spec][:[join_str]]
group_data_format_specGroupData_
join_strstr used to join list elements