Did I find the right examples for you? yes no

All Samples(206)  |  Call(187)  |  Derive(0)  |  Import(19)
Check if the tag is a block level HTML tag.

        def isBlockLevel(tag):
    """Check if the tag is a block level HTML tag."""
    if isinstance(tag, basestring):
        return BLOCK_LEVEL_ELEMENTS.match(tag)
    # Some ElementTree tags are not strings, so return False.
    return False
        


src/o/w/ownNotes-HEAD/Desktop/python/markdown/postprocessors.py   ownNotes(Download)
                # Comment, php etc...
                return True
            return util.isBlockLevel(m.group(1))
        return False
 

src/o/w/ownNotes-HEAD/python/markdown/postprocessors.py   ownNotes(Download)
                # Comment, php etc...
                return True
            return util.isBlockLevel(m.group(1))
        return False
 

src/a/l/Alfred-Popclip-Sublime-HEAD/PopClip 2/PopClippins-master/source/mdtohtml/markdown/postprocessors.py   Alfred-Popclip-Sublime(Download)
                # Comment, php etc...
                return True
            return util.isBlockLevel(m.group(1))
        return False
 

src/s/l/sloth-HEAD/lib/markdown/postprocessors.py   sloth(Download)
                # Comment, php etc...
                return True
            return util.isBlockLevel(m.group(1))
        return False
 

src/d/r/Dropblog-HEAD/markdown/postprocessors.py   Dropblog(Download)
                # Comment, php etc...
                return True
            return util.isBlockLevel(m.group(1))
        return False
 

src/k/h/KhtNotes-HEAD/khtnotes/markdown/postprocessors.py   KhtNotes(Download)
                # Comment, php etc...
                return True
            return util.isBlockLevel(m.group(1))
        return False
 

src/s/d/sdetools-4.4.1/sdetools/extlib/markdown/postprocessors.py   sdetools(Download)
                # Comment, php etc...
                return True
            return util.isBlockLevel(m.group(1))
        return False
 

src/o/w/ownNotes-HEAD/Desktop/python/markdown/treeprocessors.py   ownNotes(Download)
    def _prettifyETree(self, elem):
        """ Recursively add linebreaks to ElementTree children. """
 
        i = "\n"
        if util.isBlockLevel(elem.tag) and elem.tag not in ['code', 'pre']:
            if (not elem.text or not elem.text.strip()) \
                    and len(elem) and util.isBlockLevel(elem[0].tag):
                elem.text = i
            for e in elem:
                if util.isBlockLevel(e.tag):

src/p/o/PopClippins-HEAD/source/mdtohtml/markdown/postprocessors.py   PopClippins(Download)
                # Comment, php etc...
                return True
            return util.isBlockLevel(m.group(1))
        return False
 

src/s/d/sdetools-HEAD/sdetools/extlib/markdown/postprocessors.py   sdetools(Download)
                # Comment, php etc...
                return True
            return util.isBlockLevel(m.group(1))
        return False
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next