Refactored and implemented basic content line folding