Ignore:
Timestamp:
Feb 24, 2014 11:00:15 AM (10 years ago)
Author:
bennylp
Message:

More re #1715: doxygen integration into the book

Location:
pjproject/trunk/doc/pjsip-book
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/doc/pjsip-book

    • Property svn:ignore set to
      xml
  • pjproject/trunk/doc/pjsip-book/fetch_trac.py

    r4704 r4762  
    11import urllib2 
    22import sys 
     3import unicodedata 
    34 
    45def fetch_rst(url): 
     
    78                 
    89        fd = urllib2.urlopen(req, timeout=30) 
    9         body = fd.read()                 
     10        body = fd.read() 
     11        body = body.replace("\r\n", "\n") 
     12 
     13        body = body.decode('utf8', 'ignore').encode('ascii', 'ignore') 
    1014 
    1115        pos = body.find("{{{") 
     
    7983        pages = process_index('index') 
    8084        for page in pages: 
     85                #if not 'endpoint' in page: 
     86                #       continue 
    8187                url = url_format % (page) 
    8288                fetch_rst(url) 
Note: See TracChangeset for help on using the changeset viewer.