     ///
     /// - 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,

    ///   - list: The list.
    ///   - location: The location of the item.
    /// - Returns: Returns the index within the list.
    func itemNumber(in list: TextList, at location: Int) -> Int {
        guard let rangeOfList = range(of:list, at: location) else {
            return NSNotFound
        }
