def _format_long_image(self):

        if self.keyword in Card._commentary_keywords:
            return self._format_long_commentary_image()

        value_length = 67
        comment_length = 64
        output = []

        # do the value string
        value = self._value.replace("'", "''")
        words = _words_group(value, value_length)
        for idx, word in enumerate(words):
            if idx == 0:
                headstr = '%-*s= ' % (KEYWORD_LENGTH, self.keyword)
            else:
                headstr = 'CONTINUE  '

            # If this is the final CONTINUE remove the '&'
            if not self.comment and idx == len(words) - 1:
                value_format = "'%-s'"
            else:
                value_format = "'%-s&'"

            value = value_format % word

            output.append('%-80s' % (headstr + value))

        # do the comment string
        comment_format = "%-s"
        if self.comment:
            words = _words_group(self.comment, comment_length)
            for idx, word in enumerate(words):
                # If this is the final CONTINUE remove the '&'
                if idx == len(words) - 1:
                    headstr = "CONTINUE  '' / "
                else:
                    headstr = "CONTINUE  '&' / "

                comment = headstr + comment_format % word
                output.append('%-80s' % comment)

        return ''.join(output)
Normalize a data array containing timestamps as the first data column
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/card.py/Card._format_long_image--crossover with--dataset/ETHPy150Open kdart/pycopia/QA/pycopia/dataset.py/normalize_time