~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to MoinMoin/filter/application_pdf.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mfrom: (0.9.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080622211713-fpo2zrq3s5dfecxg
Tags: 1.7.0-3
Simplify /etc/moin/wikilist format: "USER URL" (drop unneeded middle
CONFIG_DIR that was wrongly advertised as DATA_DIR).  Make
moin-mass-migrate handle both formats and warn about deprecation of
the old one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
    MoinMoin - PDF filter
4
4
 
5
5
    Depends on: pdftotext command from xpdf-utils package
6
 
    
7
 
    @copyright: 2006 by ThomasWaldmann MoinMoin:ThomasWaldmann
 
6
 
 
7
    @copyright: 2006 MoinMoin:ThomasWaldmann
8
8
    @license: GNU GPL, see COPYING for details.
9
9
"""
10
10
 
11
 
from MoinMoin import filter
 
11
from MoinMoin.filter import execfilter
12
12
 
13
13
def execute(indexobj, filename):
14
 
    return filter.execfilter("pdftotext -enc UTF-8 %s -", filename)
 
14
    return execfilter("pdftotext -enc UTF-8 '%s' -", filename)
15
15