Apply fix for #4336: reworking _group_lines to cope with empty text nodes.
Authored by: thatch 2007-01-11
Parent: [r4547]
Child: [r4549]