LRDOCS-919 fix image and XML comment not closed

A leading space in the image corrupt image generation in output files.