Switch to unified view

a/scripts/teamforge-import.py b/scripts/teamforge-import.py
...
...
648
            text, link = snippet.split('|', 1)
648
            text, link = snippet.split('|', 1)
649
            return '[%s](%s)' % (text, link)
649
            return '[%s](%s)' % (text, link)
650
        else:
650
        else:
651
            # regular link
651
            # regular link
652
            return '<%s>' % snippet
652
            return '<%s>' % snippet
653
    markup = bracket_macro.sub(bracket_handler, markup)
653
    markup = bracket_macro.sub(bracket_handler, markup or '')
654
    markup = h1.sub('#', markup)
654
    markup = h1.sub('#', markup)
655
    markup = h2.sub('##', markup)
655
    markup = h2.sub('##', markup)
656
    markup = h3.sub('###', markup)
656
    markup = h3.sub('###', markup)
657
657
658
    markup = re_stats.sub('', markup)
658
    markup = re_stats.sub('', markup)
...
...
666
        if path:
666
        if path:
667
            return '<a href="/projects/%s/files/%s">%s</a>' % (
667
            return '<a href="/projects/%s/files/%s">%s</a>' % (
668
                sf_project_shortname, path, path)
668
                sf_project_shortname, path, path)
669
        else:
669
        else:
670
            return relno
670
            return relno
671
    text = re_rel.sub(rel_handler, text)
671
    text = re_rel.sub(rel_handler, text or '')
672
    return text
672
    return text
673
673
674
674
675
def find_image_references(markup):
675
def find_image_references(markup):
676
    'yields filenames'
676
    'yields filenames'