GwR patch for empty merge field

This commit is contained in:
GRiker 2011-01-02 11:53:03 -07:00
parent 0013602286
commit 01469303ab

View File

@ -4829,6 +4829,8 @@ class EPUB_MOBI(CatalogPlugin):
addendum = self.__db.get_field(record['id'],
self.__merge_comments['field'],
index_is_id=True)
if addendum is None:
addendum = ''
include_hr = eval(self.__merge_comments['hr'])
if self.__merge_comments['position'] == 'before':
merged = addendum