Commits

Yuya Nishihara  committed b7a88a6

revdetails: have message widget honor user-specified font

Since <pre> tag overrides font family, 'fontcomment' setting has no effect.
What we want is just preserving white spaces.

http://qt.gitorious.org/qt/qt/blobs/4.8/src/gui/text/qtexthtmlparser.cpp#line1145

  • Participants
  • Parent commits bee22c7
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/revdetails.py

         inlinetags = self.repo.ui.configbool('tortoisehg', 'issue.inlinetags')
         if ctx.tags() and inlinetags:
             msg = ' '.join(['[%s]' % tag for tag in ctx.tags()]) + ' ' + msg
-        self.message.setHtml('<pre>%s</pre>'
+        # don't use <pre>...</pre>, which also changes font family
+        self.message.setHtml('<div style="white-space: pre;">%s</div>'
                              % self._deschtmlize(msg))
         self._fileactions.setRev(rev)
         self.actionShowAllMerge.setEnabled(len(ctx.parents()) == 2)