iffirstBlock.dataissecondBlock.data:#content link of itself in succession. Very common usecase, but not compatible with merging.
logging.info("CC Block merge aborted: content link follows itself")
logger.info("CC Block merge aborted: content link follows itself")
returnFalse
elifnotself.blocks.index(firstBlock)+1==self.blocks.index(secondBlock):#all first blocks must be followed directly by a content link of the second block. linkedContentBlocksInScore() returns a blocklist in order so we can compare.
logging.info("CC Block merge aborted: not all content link blocks-pairs are next to each other")
logger.info("CC Block merge aborted: not all content link blocks-pairs are next to each other")
returnFalse
#Test complete without exit. All blocks can be paired up.