Commits

Anonymous committed 4208a98

Some arguments got changed in rst2pdf for better PEP8 compliance

  • Participants
  • Parent commits 62cc2cf

Comments (0)

Files changed (1)

sphinx/writers/pdf.py

       self.fitmode = fitmode
       self.compressed = compressed
       self.inline_footnotes = inline_footnotes
+      self.highlightlang = builder.config.highlight_language
 
    supported = ('pdf')
    config_section = 'pdf writer'
                          # FIXME
                          language='en_US',
                          breaklevel=self.breaklevel,
-                         fitMode=self.fitmode,
-                         fontPath=self.fontpath,
+                         fit_mode=self.fitmode,
+                         font_path=self.fontpath,
                          inline_footnotes=self.inline_footnotes,
+			 highlightlang=self.highlightlang,
                         ).createPdf(doctree=self.document,
                                     output=sio,
                                     compressed=self.compressed)