witten
/
luminotes
Archived
1
0
Fork 0

Fix to recognize and rewrite note links that have target="_top", such as those for "try it out" and "login".

This commit is contained in:
Dan Helfman 2007-08-03 22:44:29 +00:00
parent 1796ccca71
commit 1c72e5a87f
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ from Tags import Html, Head, Title, Style, Meta, Body, H1, Div, Span, Hr, A
class Html_file( Html ):
NOTE_LINK_PATTERN = re.compile( u'<a\s+href="\/notebooks\/[a-z0-9]*\?note_id=([a-z0-9]*)"\s*>', re.IGNORECASE )
NOTE_LINK_PATTERN = re.compile( u'<a\s+href="\/notebooks\/[a-z0-9]*\?note_id=([a-z0-9]*)"[^>]*>', re.IGNORECASE )
def __init__( self, notebook_name, notes ):
relinked_notes = {} # map from note id to relinked note contents