Show
Ignore:
Timestamp:
11/14/08 11:05:22 (16 months ago)
Author:
JensDiemer
Message:

Bugfix in creole markup: Wrong image RE, see: http://www.pylucid.org/phpBB2/viewtopic.php?t=256 Thx. Hirmus

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid_project/tests/markup_creole.py

    r1781 r1795  
    147147            <strong><a href="Shortcut2">a page2</a></strong><br /> 
    148148            <i><strong><a href="Shortcut3">a page3</a></strong></i></p> 
     149        """) 
     150         
     151    def test_image(self): 
     152        self.assertCreole(r""" 
     153            a {{/image.jpg|JPG pictures}} and 
     154            a {{/image.jpeg|JPEG pictures}} and 
     155            a {{/image.gif|GIF pictures}} and 
     156            a {{/image.png|PNG pictures}} ! 
     157        """, """ 
     158            <p>a <img src="/image.jpg" alt="JPG pictures"> and<br /> 
     159            a <img src="/image.jpeg" alt="JPEG pictures"> and<br /> 
     160            a <img src="/image.gif" alt="GIF pictures"> and<br /> 
     161            a <img src="/image.png" alt="PNG pictures"> !</p> 
    149162        """) 
    150163