import re


def parse_body(lines):
    """Parse chapter titles, subtitles, etc and depth level."""
    chapters = []
    for chapter in lines:
        depth = len(re.findall(r' {4}|\t', chapter))
        title = chapter.strip()
        if len(title) != 0:
            chapters.append((title, depth))
    return chapters