Merge commit 'd8692f6ed56a8bb1bcdd1117aef7df69ec1c39aa' into types
"index" and "index-one" options for space tables
This commit is contained in:
commit
dfb8e5da78
|
@ -1497,6 +1497,16 @@ void Generator<StreamType, is_pikotools_stream, is_autoescape_stream>::CallSpace
|
|||
if( !IsTestingFunctionExistence() )
|
||||
{
|
||||
DumpSpaceIfNeeded(result, parameters, space);
|
||||
|
||||
if( HasParam(parameters, L"index") )
|
||||
{
|
||||
result.stream << space_wrapper.get_space_iterator_value(model_wrapper_space_table_index);
|
||||
}
|
||||
|
||||
if( HasParam(parameters, L"index-one") )
|
||||
{
|
||||
result.stream << (space_wrapper.get_space_iterator_value(model_wrapper_space_table_index) + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue