Commits

lyhcode committed 59a1b86

fix sources for checker

Comments (0)

Files changed (2)

sphinx/builders/mobi.py

     to generate the mobi file.
     """
     name = 'mobi'
-    
+
     def init(self):
         EpubBuilder.init(self)
-    
+
     # Finish by building the mobi file
     def handle_finish(self):
         """Create the metainfo files and finally the mobi."""
         EpubBuilder.handle_finish(self)
-        os.system("kindlegen -c1 -rebuild -verbose %s" % os.path.join(self.outdir, 
-            self.config.epub_basename + '.epub'))
-    
+        _epub_file = os.path.join(self.outdir,
+            self.config.epub_basename + '.epub')
+        os.system("kindlegen -c1 -rebuild -verbose %s" % _epub_file)
+
     def get_theme_config(self):
         return self.config.mobi_theme, {}
-    
+
     def build_content(self, outdir, outname):
         """Write the metainfo file content.opf It contains bibliographic data,
         a file list, the spine (the reading order) and the guide (first page
         and html version of the toc).
         """
-        
+
         EpubBuilder.build_content(self, outdir, outname,
-            content_template=_content_template)
+            content_template=_content_template)

sphinx/themes/basic_simple/layout.html

 {%- endif %}
 
 {%- macro relbar() %}
-	<!--relbar disabled-->
+    <!--relbar disabled-->
 {%- endmacro %}
 
 {%- macro sidebar() %}
 {%- block relbar2 %}{{ relbar() }}{% endblock %}
 
 {%- block footer %}
-	<!--footer disabled-->
+    <!--footer disabled-->
 {%- endblock %}
   </body>
 </html>