[prev in list] [next in list] [prev in thread] [next in thread] 

List:       trac-tickets
Subject:    [Trac-tickets] [The Trac Project] #1727: Wiki formatting fails when
From:       noreply () edgewall ! com (The Trac Project)
Date:       2005-06-28 1:43:27
Message-ID: 043.f372c81c67f26fc0c9c5b35d20981da5 () edgewall ! com
[Download RAW message or body]

#1727: Wiki formatting fails when using colon
--------------------+-------------------------------------------------------
       Id:  1727    |      Status:  new                     
Component:  wiki    |    Modified:  Tue Jun 28 01:43:18 2005
 Severity:  normal  |   Milestone:  0.9                     
 Priority:  high    |     Version:  devel                   
    Owner:  jonas   |    Reporter:  PBruin                  
--------------------+-------------------------------------------------------
 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.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/1727>
The Trac Project <>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic