copydoc.py
def check_next(self, tag):
        """
        If next tag is link with same href, combine them.
        """
        if (type(tag.next_sibling) == element.Tag and
                tag.next_sibling.name == 'a'):

            next_tag = tag.next_sibling
            if tag.get('href') and next_tag.get('href'):
                href = self._parse_href(tag.get('href'))
                next_href = self._parse_href(next_tag.get('href'))

                if href == next_href:
                    next_text = next_tag.get_text()
                    tag.append(next_text)
                    self.tags_blacklist.append(next_tag)
def check_next(self, tag):
        """
        If next tag is link with same href, combine them.
        """
        if (type(tag.next_sibling) == element.Tag and
                tag.next_sibling.name == 'a'):

            next_tag = tag.next_sibling
            if tag.get('href') and next_tag.get('href'):
                href = self._parse_href(tag.get('href'))
                next_href = self._parse_href(next_tag.get('href'))

                if href == next_href:
                    next_text = next_tag.get_text()
                    tag.append(next_text)
                    self.tags_blacklist.append(next_tag)
def check_next ( self , tag ) : if ( type ( tag . next_sibling ) == element . Tag and tag . next_sibling . name == 'a' ) : next_tag = tag . next_sibling if tag . get ( 'href' ) and next_tag . get ( 'href' ) : href = self . _parse_href ( tag . get ( 'href' ) ) next_href = self . _parse_href ( next_tag . get ( 'href' ) ) if href == next_href : next_text = next_tag . get_text ( ) tag . append ( next_text ) self . tags_blacklist . append ( next_tag )
If next tag is link with same href, combine them.
If next tag is link with same href combine them .