'''
#need anything else besides textwidth?
def get_latex_textwidth (source):
- print 'hoi\n', source
m = re.search (r'''(?P<preamble>\\begin\s*{document})''', source)
preamble = source[:m.start (0)]
latex_document = LATEX_DOCUMENT % vars ()
+ format2ext[format])
- if os.path.samefile (output_filename, input_fullname):
+ if (os.path.exists (input_filename) and
+ os.path.exists (output_filename) and
+ os.path.samefile (output_filename, input_fullname)):
ly.error (_("Output would overwrite input file; use --output."))
sys.exit (2)
ly.progress (_ ("Reading %s...") % input_fullname)
source = in_handle.read ()
- print 'hoai', source, in_handle
ly.progress ('\n')
snippet_types = (