Improved output format of inline elements