'Detects total marked up line endings in the file. raw is the text to
inspect.  Percent is the minimum percent of line endings which should
be marked up to return true.'

def no_markup(self, raw, percent):

    htm_end_ere = re.compile('</(p|div)>', re.DOTALL)
    line_end_ere = re.compile('(\n|\r|\r\n)', re.DOTALL)
    htm_end = htm_end_ere.findall(raw)
    line_end = line_end_ere.findall(raw)
    tot_htm_ends = len(htm_end)
    tot_ln_fds = len(line_end)
    if (percent > 1):
        percent = 1
    if (percent < 0):
        percent = 0
    min_lns = (tot_ln_fds * percent)
    return (min_lns > tot_htm_ends)
