OpenNTF.org - DominoWiki
DominoWikiOpenDocument[/projects/pmt.nsf/ProjectView?ReadForm&Query=DominoWiki~Discussion]

My Links (Not logged in)
User Name Password
Advert: Your ad here

Hosted by Prominic.NET

   Project: DominoWiki (Managed by Benedict R Poole)
Actions:


Subject
 Indentation of Lists
Categories
 User Interface
Posted by
 Peter D Presnell on 03/11/2008 at 02:01 PM
Details

On of the issues I have found in using DominoWiki is that the way lists are created by replacing "*" with <li>. It seems that because the list are not placed inside <ul>... </ul> tags that all subsequent text that follows the list becomes indented.

This is only a partial fix, but I found that by replacing the ParseLists function with the following code:-

Public Function parseLists (Byval txt As String) As String
'** lines beginning with "*" are bullet items
Dim ListStartPos As Long
Dim ListEndPos As Long

While Instr(txt, Chr(10) & "*") > 0
ListStartPos& = Instr(txt, Chr(10) & "*")
txt = Replace(txt, Chr(10) & "*", Chr(10) "<ul><li>",ListStartPos&,1)
txt = Replace(txt, Chr(10) , "</ul>" + Chr(10),ListStartPos&+1,1)
Wend
parseLists = txt
End Function

I could at least get each list item inside a UL tag.

I then needed to modify the style sheet to stop the excessive spacing between each list element...

ul
{
margin-top: 0;
margin-bottom: 0;
}

Ideally each list should be placed inside a single<ul> </ul> tag rather than each and every list item, but I haven't figured that part out (yet!)
Modification history
Entered 11-Mar-2008 14:01 by Peter D Presnell. Last Modified <none> by <none>.
Feedback

Hide details for On of the issues I have found in us... (Peter D Presnel... on 03/11/2008 02:01:20 PM )On of the issues I have found in us... (Peter D Presnel... on 03/11/2008 02:01:20 PM )
. . Another idea (Dave Parillo on 06/23/2008 02:24:43 PM )
Check out other projects
Switch to project:


Anonymous