Skip to content

Commit

Permalink
Use string.capwords in %title(s) to lower char after apostrophe (#3033)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhermeHideki committed Oct 22, 2018
1 parent 1828114 commit df0d307
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beets/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import time
import re
import six
import string

from beets import logging
from beets.mediafile import MediaFile, UnreadableFileError
Expand Down Expand Up @@ -1456,7 +1457,7 @@ def tmpl_upper(s):
@staticmethod
def tmpl_title(s):
"""Convert a string to title case."""
return s.title()
return string.capwords(s)

@staticmethod
def tmpl_left(s, chars):
Expand Down

0 comments on commit df0d307

Please sign in to comment.