Ticket #2878: sage-2878.patch

File sage-2878.patch, 955 bytes (added by was, 14 years ago)
  • sage/server/notebook/cell.py

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1207973527 25200
    # Node ID 5488f7a66af6fc4bdd52047e0ca79dbc66298e25
    # Parent  57dc6c27c264d55bbd24387e49261da07a45ca5a
    trac #2878 -- make it so autogenerated links in the notebook open up in a new page; saves a *lot* of confusion.
    
    diff -r 57dc6c27c264 -r 5488f7a66af6 sage/server/notebook/cell.py
    a b class Cell(Cell_generic): 
    734734                link_text = str(F)
    735735                if len(link_text) > 40:
    736736                    link_text = link_text[:10] + '...' + link_text[-20:]
    737                 files.append('<a href="%s" class="file_link">%s</a>'%(url, link_text))
     737                files.append('<a target="_new" href="%s" class="file_link">%s</a>'%(url, link_text))
    738738        if len(images) == 0:
    739739            images = ''
    740740        else: