Hi,
Have a change packet ready. Addresses bugs 1039227 and 2026301 and part of feature request 1045221.

   Here is the readme of the associated changes.

... Bob
Notes about this Change 
Date:   July 25 2008
Author: Bob Armstrong
Based on the sources from CVS build version 243
Changes have been running on a company site for about 1 week with no issues 
reported.

Fixes bugs: 1039227 and 2026301
Covers part of feature request: 1045221

This change corrects list formatting, and supports intermixed list formatting. 
I have also includes code to
handle a very old feature request for list continuation, however this code 
determines the numbering
automatically. As I needed a new tag for this, I have created an alternate tag 
for numbered lists as well. 

The code has been fashioned to try to have as little impact on the existing 
code base as possible. I was able to 
concentrate most of the logic in the one method (ensure). It is not very OO 
pretty, but to do it properly would have required
restructuring at least half the code in the file. A bit too much work for me. 

Summary of Changes: (Bulk of the changes are in Formatter)

EngineSource\HTMLWikiOutput.cs - added method WriteComment for writing out html 
comments for internal debugging
                               - added method WriteOpenOrderedList(int start) 
which accepts a starting number

EngineSource\WikiOutput.cs     - added abstract definitions for the above 2 
methods

EngineSource\Formatter.cs      - removed nesting level counters from the state 
classes. 
                                 Added a stack to maintain nesting history, as 
well as a indiceCount array to store
                                 the numbers for each level. 
                                 code to increment the indices within each 
level was added to the formatting section
                                 for each list type. Added alternate number 
list tags \t# and \t#^ for number list 
                                 continuation. level determination logic is now 
done in the ensure method.

                               - there is a small independent change that was 
done awhile ago to add a few emoticons
                                 that I am including.
                                 (I will include gifs as well). These are:
                                 change (y)  "checkmark"     to point to 
emoticons\y.gif
                                             {the original gif is still 
available using (Y) }
                                 add    (By) "big checkmark" to point to 
emoticons\tick.gif         
                                 change (n)  "crossmark"     to point to 
emoticons\n.gif
                                             {the original gif is still 
available using (N) }
                                 add    (Bn) "big crossmark" to point to 
emoticons\cross.gif
                                 add    %%-  "good luck"     to point to 
emoticons\good_luck.gif
                    
For example which shows both the feature and bug fixes is now possible

        # New Format Item 1
                * a bullet      
        # New Format Item 2
        # New Format Item 3
                # New Format Level 2 Item 1
A line with text on it
                #^ New Format Level 2 Item 2
        # New Format Item 4

will produce
1. New Format Item 1
    o a bullet 
2. New Format Item 2 
3. New Format Item 3 
    1. New Format Level 2 Item 1 
    
A line with text on it

    2. New Format Level 2 Item 2 
4. New Format Item 4 
                            
FlexWiki.UnitTests\Formatting\FormatterTests.cs - added 7 nunit tests, some 
tests repeated using the new
                                                  number list tag, including 2 
tests for testing list
                                                  continuation at different 
levels.
                                                  
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users

Reply via email to