Author: sebastien.lelong
Date: Tue Oct 28 14:16:29 2008
New Revision: 495

Modified:
    trunk/tools/jalapi.py
    trunk/tools/jalapi_html.tmpl
    trunk/tools/jallib.py

Log:
issue 36: use <pre> tag to keep comment layour in jal sources. wikify dep  
no more needed

Modified: trunk/tools/jalapi.py
==============================================================================
--- trunk/tools/jalapi.py       (original)
+++ trunk/tools/jalapi.py       Tue Oct 28 14:16:29 2008
@@ -26,7 +26,6 @@

  import sys, os
  import re
-import wikify
  import jsg_validator

  SVN_BROWSER_ROOT = "http://code.google.com/p/jallib/source/browse";
@@ -163,7 +162,6 @@
        # generate doc
        tmplsrc = "".join(file(tmpl_file,"r").readlines())
        klass = Cheetah.Template.Template.compile(tmplsrc)
-       wikifier = wikify.Wikifier(wikify.GoogleCodeWikiFormat,suffix=".html")
        tmpl = klass()
        tmpl.dhead = dhead
        tmpl.dproc = dproc
@@ -173,7 +171,6 @@
        tmpl.libname = libname
        tmpl.dsamples = dsamples
        tmpl.html_linker = html_linker
-       tmpl.wikifier = wikifier

        print tmpl.main()


Modified: trunk/tools/jalapi_html.tmpl
==============================================================================
--- trunk/tools/jalapi_html.tmpl        (original)
+++ trunk/tools/jalapi_html.tmpl        Tue Oct 28 14:16:29 2008
@@ -1,9 +1,9 @@
  ## Use to generate safe anchor
  #import md5

-#def wiki2html(what)
+#def txt2html(what)
        ## Convert GC wiki to html, *BUT* keep line feed as <br> !
-       $wikifier.wikify($what).replace("\n","<br/>")
+       <pre>$what</pre>
  #end def

  #def header
@@ -66,14 +66,14 @@
        
        <b>Description</b>
        <p>
-       $wiki2html($description)
+       $txt2html($description)
        </p>
        <br/>

        #if $sources
        <b>Sources</b>
        <p>
-       $wiki2html($sources)
+       $txt2html($sources)
        </p>
        <br/>
        #end if
@@ -81,7 +81,7 @@
        #if $notes
        <b>Notes</b>
        <p>
-       $wiki2html($notes)
+       $txt2html($notes)
        </p>
        <br/>
        #end if
@@ -116,7 +116,7 @@
                        #else
                                <b><code name="code" class="python"><a 
name="$anchor"  
href="#summary">$v</a></code></b>
                                #if doc
-                               <p>$wiki2html($doc)</p>
+                               <p>$txt2html($doc)</p>
                                #else
                                <p><i>No documentation found</i></p>
                                #end if

Modified: trunk/tools/jallib.py
==============================================================================
--- trunk/tools/jallib.py       (original)
+++ trunk/tools/jallib.py       Tue Oct 28 14:16:29 2008
@@ -19,7 +19,6 @@
  # If you use the binary executables, you won't need to install them
  deps = [
     # (lib name, used in actions, website)
-   ('wikify','jalapi','http://cspace.googlecode.com/svn/wiki/wikify.py'),
     ('cheetah','jalapi','http://cheetahtemplate.org'),
     ('yaml','test','http://pyyaml.org/wiki/PyYAML'),
     ('pysvn','jalapi,test','http://pysvn.tigris.org/'),

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to