How to add the support of the get_next_object() callback to the 5-c_stats example?

No mention . Hi i want to print each leaf-list in separate line instead of printing in single line separated by spaces . Could you please let me know if there are any tailf extensions to meet this . My yang file looks like as below
list port
{
tailf:callpoint feafrontportstats;
tailf:cli-no-key-completion;
key “port”;
leaf port
{
type uint16;
description “Front panel port number”;
}
leaf-list stats
{
type string;
description “List of stats for each port”;

        }
    }

And i need to print output in CLI as below

Total Packets Received (Octets)…0
Packets Received 64 Octets…0
Packets Received 65‐127 Octets…0
Packets Received 128‐255 Octets…0
Packets Received 256‐511 Octets…0
Packets Received 512‐1023 Octets…0
Packets Received 1024‐1518 Octets…0
Packets Received > 1518 Octets…0
Total Packets Received Without Errors…0
Unicast Packets Received…0
Multicast Packets Received…0
Broadcast Packets Received…0