diff --git a/gramps/gen/plug/docgen/paragraphstyle.py b/gramps/gen/plug/docgen/paragraphstyle.py index 5a651c8b1..e434175e0 100644 --- a/gramps/gen/plug/docgen/paragraphstyle.py +++ b/gramps/gen/plug/docgen/paragraphstyle.py @@ -288,7 +288,7 @@ class ParagraphStyle(object): def get_alignment_text(self): """ - Return a text string representing the alginment, either 'left', + Return a text string representing the alignment, either 'left', 'right', 'center', or 'justify' """ if self.align == PARA_ALIGN_LEFT: diff --git a/gramps/gen/plug/docgen/stylesheet.py b/gramps/gen/plug/docgen/stylesheet.py index bc4a2ecc9..fb11d81d7 100644 --- a/gramps/gen/plug/docgen/stylesheet.py +++ b/gramps/gen/plug/docgen/stylesheet.py @@ -409,7 +409,6 @@ class SheetParser(handler.ContentHandler): if 'description' in attrs: self.p.set_description(attrs['description']) self.p.set_right_margin(glocale.float(attrs['rmargin'])) - self.p.set_right_margin(glocale.float(attrs['rmargin'])) self.p.set_left_margin(glocale.float(attrs['lmargin'])) self.p.set_first_indent(glocale.float(attrs['first'])) try: diff --git a/gramps/plugins/textreport/detdescendantreport.py b/gramps/plugins/textreport/detdescendantreport.py index d58c94828..032665896 100644 --- a/gramps/plugins/textreport/detdescendantreport.py +++ b/gramps/plugins/textreport/detdescendantreport.py @@ -46,7 +46,6 @@ from functools import partial #------------------------------------------------------------------------ from gramps.gen.const import GRAMPS_LOCALE as glocale _ = glocale.translation.gettext -from gramps.gen.const import GRAMPS_LOCALE as glocale from gramps.gen.display.name import displayer as global_name_display from gramps.gen.errors import ReportError from gramps.gen.lib import FamilyRelType, Person, NoteType