     ///
     /// - Returns: An NSRange optional containing the range of the list or nil if no list was found.
     ///
-    func range(of list: TextList,
-               at location: Int) -> NSRange? {
+    func range(of list: TextList, at location: Int) -> NSRange? {
 
         var effectiveRange = NSRange()
         let targetRange = rangeOfEntireString

            return nil
        }
        var resultRange = effectiveRange
        while resultRange.location > 0 {
            if
                let paragraphStyle = attribute(NSParagraphStyleAttributeName, at: resultRange.location-1, longestEffectiveRange: &effectiveRange, in: targetRange) as? ParagraphStyle,

    /// - Returns: An NSRange optional containing the range of the list or nil if no list was found.
    ///
    func rangeOfTextList(atIndex index: Int) -> NSRange? {
        guard let textList = textListAttribute(atIndex: index) else {
            return nil
        }

        return range(of: textList, at: index)
    }

    /// Returns the range of the given text list that contains the given location.
