From 325699507524e61d7f1981b7924b322377f4a939 Mon Sep 17 00:00:00 2001 From: Nemo Date: Fri, 28 May 2021 22:49:53 +0530 Subject: [PATCH] Change default to /Fit --- src/pystitcher/bookmark.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pystitcher/bookmark.py b/src/pystitcher/bookmark.py index ee79798..3aecfe0 100644 --- a/src/pystitcher/bookmark.py +++ b/src/pystitcher/bookmark.py @@ -1,6 +1,6 @@ """ Bookmark class """ class Bookmark: - def __init__(self, page, title, level=1, fit='/FitV'): + def __init__(self, page, title, level=1, fit='/Fit'): self.page = page self.title = title self.level = level @@ -11,7 +11,8 @@ class Bookmark: elif (self.fit == '/FitH' or self.fit == '/FitV' or self.fit == '/FitBH' or self.fit == '/FitBV'): self.cords = [(0)] else: - self.fit = '/FitB' + # Invalid value passed + self.fit = '/Fit' self.cords = []