             let longestString = String(repeating: "0", count: maximumParagraphDigits) as NSString
             let size = longestString.size(withAttributes: [.font: lineNumberFont])
             lineNumberSize = CGSize(width: ceil(size.width), height: ceil(size.height))
+
         }
 
         override func drawBackground(forGlyphRange glyphsToShow: NSRange, at origin: CGPoint) {

                let characterRange = self.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil)

                var paragraphStart = 0
                string.getLineStart(&paragraphStart, end: nil, contentsEnd: nil, for: characterRange)

                if characterRange.location == paragraphStart {
                    // First line fragment of paragraph (before wrapped text, if any)

                    let paragraphIndex = textStorage.paragraphIndex(at: characterRange.location)
                    let drawnString = String(paragraphIndex + 1) as NSString
                    drawnString.draw(with: gutterRect, options: .usesLineFragmentOrigin, attributes: attributes, context: nil)

                    // Check if we reached the end and if there is an extra empty line
                    if paragraphEnd == string.length && self.extraLineFragmentTextContainer != nil {

                        // Get the rect of the current empty line fragment
                        let extraLineFragmentRect = self.extraLineFragmentRect

                        let newLineGutterRect = CGRect(x: origin.x,
                                                       y: origin.y + extraLineFragmentRect.origin.y,
                                                       width: self.lineNumberSize.width,
                                                       height: max(extraLineFragmentRect.size.height, self.lineNumberSize.height))

                        let drawnString = String(paragraphIndex + 2) as NSString
                        drawnString.draw(with: newLineGutterRect, options: .usesLineFragmentOrigin, attributes: attributes, context: nil)

                    }

                }
            }
        }
