Modify ↓
Opened 20 years ago
Closed 20 years ago
#1727 closed defect (fixed)
Wiki formatting fails when using colon
| Reported by: | PBruin | Owned by: | Jonas Borgström |
|---|---|---|---|
| Priority: | high | Milestone: | 0.9 |
| Component: | wiki system | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: | peter.bruin@… | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
The following unit test I added to demonstrate the problem fails while it should pass:
Index: tests/wiki-tests.txt =================================================================== --- tests/wiki-tests.txt (revision 1864) +++ tests/wiki-tests.txt (working copy) @@ -346,6 +346,18 @@ <strong><i>one</i></strong>, <strong><i>two</i></strong>, <strong><i>three</i></strong>, <strong><i>four</i></strong> </p> ============================== +'''Note''' +------------------------------ +<p> +<strong>Note</strong> +</p> +============================== +'''Note:''' +------------------------------ +<p> +<strong>Note:</strong> +</p> +============================== __~~underlineoversrike~~__ ------------------------------ <p>
This is the output from the test:
======================================================================
FAIL: Testing WikiFormatter
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python\trac.trunk\trac\wiki\tests\formatter.py", line 69, in test
self.assertEquals(self.correct, v)
File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
raise self.failureException, \
AssertionError: '<p>\n<strong>Note:</strong>\n</p>\n' != "<p>\n<strong>Note:'''\n</strong></p>\n"
----------------------------------------------------------------------
Ran 292 tests in 17.047s
FAILED (failures=1)
My example is bold but the same counts for italic.
Attachments (0)
Note:
See TracTickets
for help on using tickets.



Fixed in [1887], thanks!