Changeset 1795
- Timestamp:
- 11/14/08 11:05:22 (16 months ago)
- Location:
- trunk/pylucid_project
- Files:
-
- 2 modified
-
PyLucid/system/markups/creole.py (modified) (1 diff)
-
tests/markup_creole.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid_project/PyLucid/system/markups/creole.py
r1774 r1795 71 71 image = r'''(?P<image> 72 72 {{ 73 (?P<image_target>.+? \.jpg|\.jpeg|\.gif|\.png) \s*73 (?P<image_target>.+?(\.jpg|\.jpeg|\.gif|\.png)) \s* 74 74 (\| \s* (?P<image_text>.+?) \s*)? 75 75 }} -
trunk/pylucid_project/tests/markup_creole.py
r1781 r1795 147 147 <strong><a href="Shortcut2">a page2</a></strong><br /> 148 148 <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> 149 162 """) 150 163