mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-24 21:44:38 +01:00
...
This commit is contained in:
parent
19638bffd1
commit
8b224a584a
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ def serialize(self, body, makeelement):
|
|||
|
||||
def sanitize_bookmark_name(base):
|
||||
# Max length allowed by Word appears to be 40, we use 32 to leave some
|
||||
# space for making the name non-unique
|
||||
# space for making the name unique
|
||||
return re.sub(r'[^0-9a-zA-Z]', '_', ascii_text(base))[:32].rstrip('_')
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue