[Python-apps-commits] r9661 - in packages/retext/trunk/debian/patches (1 file)

mitya57-guest at users.alioth.debian.org mitya57-guest at users.alioth.debian.org
Wed May 22 08:52:19 UTC 2013


    Date: Wednesday, May 22, 2013 @ 08:52:17
  Author: mitya57-guest
Revision: 9661

git_fix_monospace_fonts.patch: fix indentation issues

Modified:
  packages/retext/trunk/debian/patches/git_fix_monospace_fonts.patch

Modified: packages/retext/trunk/debian/patches/git_fix_monospace_fonts.patch
===================================================================
--- packages/retext/trunk/debian/patches/git_fix_monospace_fonts.patch	2013-05-21 20:28:21 UTC (rev 9660)
+++ packages/retext/trunk/debian/patches/git_fix_monospace_fonts.patch	2013-05-22 08:52:17 UTC (rev 9661)
@@ -1,28 +1,28 @@
 Description: work-around monospace fonts not working in QtWebKit
 Origin: upstream, http://sourceforge.net/p/retext/git/ci/5fec4aecf7/
 Bug-Ubuntu: https://bugs.launchpad.net/bugs/1165378
-Last-Update: 2013-05-18
+Last-Update: 2013-05-22
 
 --- a/ReText/__init__.py
 +++ b/ReText/__init__.py
-@@ -33,7 +33,7 @@ DOCTYPE_REST = markups.ReStructuredTextMarkup.name
+@@ -33,7 +33,7 @@
  DOCTYPE_HTML = 'html'
  
  try:
--       from PyQt4.QtWebKit import QWebView, QWebPage
-+       from PyQt4.QtWebKit import QWebView, QWebPage, QWebSettings
+-	from PyQt4.QtWebKit import QWebView, QWebPage
++	from PyQt4.QtWebKit import QWebView, QWebPage, QWebSettings
  except:
-        webkit_available = False
+ 	webkit_available = False
  else:
 --- a/retext.py
 +++ b/retext.py
-@@ -40,6 +40,9 @@ def main():
-                sheetfile.open(QIODevice.ReadOnly)
-                app.setStyleSheet(QTextStream(sheetfile).readAll())
-                sheetfile.close()
-+       # A work-around for https://bugs.webkit.org/show_bug.cgi?id=114618
-+       webSettings = QWebSettings.globalSettings()
-+       webSettings.setFontFamily(QWebSettings.FixedFont, 'monospace')
-        window = ReTextWindow()
-        window.show()
-        fileNames = [QFileInfo(arg).canonicalFilePath() for arg in sys.argv[1:]]
+@@ -40,6 +40,9 @@
+ 		sheetfile.open(QIODevice.ReadOnly)
+ 		app.setStyleSheet(QTextStream(sheetfile).readAll())
+ 		sheetfile.close()
++	# A work-around for https://bugs.webkit.org/show_bug.cgi?id=114618
++	webSettings = QWebSettings.globalSettings()
++	webSettings.setFontFamily(QWebSettings.FixedFont, 'monospace')
+ 	window = ReTextWindow()
+ 	window.show()
+ 	fileNames = [QFileInfo(arg).canonicalFilePath() for arg in sys.argv[1:]]




More information about the Python-apps-commits mailing list