Show
Ignore:
Timestamp:
03/25/08 09:24:47 (8 months ago)
Author:
JensDiemer
Message:

move the automatic headline anchor function from tinyTextile markup ( changeset:1500 ) into a middleware. So every markups becomes headline anchors. See also: ticket:46

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/tests/test_tinyTextile.py

    r1500 r1503  
    3535#VERBOSE = 1 
    3636VERBOSE = 2 
    37  
    38 PERMALINK = "/permalink/" 
    3937 
    4038 
     
    113111        self.fake_context = get_fake_context() 
    114112        self.out = SimpleStringIO() 
    115         self.textile = TinyTextileParser(self.out, PERMALINK, self.fake_context) 
     113        self.textile = TinyTextileParser(self.out, self.fake_context) 
    116114 
    117115    def tearDown(self): 
     
    243241        """) 
    244242        out_test = self._prepare_text(""" 
    245             <h1 id="headlineA"><a title="Link to this section" href="/permalink/#headlineA" class="anchor">headline A</a></h1> 
    246              
     243            <h1>headline A</h1> 
    247244            <p>Text1</p> 
    248             <h2 id="headlineB"><a title="Link to this section" href="/permalink/#headlineB" class="anchor">headline B $%#</a></h2> 
    249              
     245            <h2>headline B $%#</h2> 
    250246            <p>Text2</p> 
    251247