         textContainer.widthTracksTextView = true
         textContainer.isHangingIndentEnabled = UserDefaults.standard[.enablesHangingIndent]
         textContainer.hangingIndentWidth = UserDefaults.standard[.hangingIndentWidth]
+        textContainer.lineFragmentPadding = self.lineFragmentPadding
+        // -> If padding is changed while printing, the print area can be cropped due to text wrapping.
         
         // setup textView components
         let textStorage = NSTextStorage()

    private let lineHeight: CGFloat
    private var printsLineNumber = false
    private var xOffset: CGFloat = 0
    private let dateFormatter: DateFormatter
    private var lastPaperContentSize: NSSize = .zero
    
    private var asyncHighlightObserver: AnyCancellable?
    

    // MARK: Lifecycle
    
    init() {
        
        self.tabWidth = UserDefaults.standard[.tabWidth]
        self.lineHeight = UserDefaults.standard[.lineHeight]
