replaced empty text lines with <space/>