Edgewall Software
Modify

Opened 19 years ago

Closed 19 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)

Change History (1)

comment:1 by Jonas Borgström, 19 years ago

Resolution: fixed
Status: newclosed

Fixed in [1887], thanks!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.