def provn_structure(content):
    """Surround contend with provn header and footer"""
    content = content.strip()
    if not content.startswith('document'):
        content = 'document\ndefault <http://example.org/>\n' + content
    if not content.endswith('endDocument'):
        content = content + '\nendDocument'
    return content
