PageToLatexPlugin: img_re.patch

File img_re.patch, 1.7 kB (added by tapted <tapted@it.usyd.edu.au>, 1 year ago)

Patch for >=0.10.3

  • pagetolatexplugin/pagetolatex/wikilatex.py

    old new  
    207207        url = gfilter_to_url(url) 
    208208        ref = totexlabel(url) 
    209209        text, title = gtotex(text), gtotex(title) 
    210         if Formatter.img_re.search(url) and self.flavor != 'oneliner': 
    211             return '\\url{%s} (extimage - todo: make figure float with caption %s)' % ( 
    212                    url, title or text) 
    213210        if not url.startswith(self._local): 
    214211            if same: 
    215212                return '\\url{' + url + '}' 
     
    224221        url = gfilter_to_url(url) 
    225222        ref = totexlabel(url) 
    226223        text = gtotex(text) 
    227         if Formatter.img_re.search(url) and self.flavor != 'oneliner': 
    228             return '\\url{%s} (relimage - todo: make figure float with caption %s)' % ( 
    229                    url, text) 
    230224        if not url.startswith(self._local): 
    231225            if same: 
    232226                return '\\url{' + url + '}' 
  • pagetolatexplugin/setup.py

    old new  
    99      author='Trent Apted', 
    1010      author_email='tapted@it.usyd.edu.au', 
    1111      description='A plugin for exporting Wiki pages as LaTeX documents (.tex)', 
    12       url='http://trac-hacks.org/wiki/PageToLaTeXPlugin', 
     12      url='http://trac-hacks.org/wiki/PageToLatexPlugin', 
    1313      entry_points={'trac.plugins': ['pagetolatex.pagetolatex=pagetolatex.pagetolatex']})