mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
Merge pull request #592 from BlueGreenMagick/tabwidth
Set tab width to 4 spaces
This commit is contained in:
commit
913c268705
1 changed files with 4 additions and 3 deletions
|
|
@ -307,9 +307,10 @@ Please create a new card type first."""
|
|||
self.tform.front.setAcceptRichText(False)
|
||||
self.tform.css.setAcceptRichText(False)
|
||||
self.tform.back.setAcceptRichText(False)
|
||||
self.tform.front.setTabStopWidth(30)
|
||||
self.tform.css.setTabStopWidth(30)
|
||||
self.tform.back.setTabStopWidth(30)
|
||||
tab_width = self.fontMetrics().width(" " * 4)
|
||||
self.tform.front.setTabStopDistance(tab_width)
|
||||
self.tform.css.setTabStopDistance(tab_width)
|
||||
self.tform.back.setTabStopDistance(tab_width)
|
||||
self.redrawing = False
|
||||
|
||||
def saveCard(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue