Go with LBs second suggestion.
Right click the details and select insert section below.
Now place each line into it's own section, right click each section and select format section->suppress blank section.
Now if the line is blank it will be suppressed, and no messy coding.
-k