diff --git a/gramps2/src/TextDoc.py b/gramps2/src/TextDoc.py index 98b490dce..26557720a 100644 --- a/gramps2/src/TextDoc.py +++ b/gramps2/src/TextDoc.py @@ -1059,6 +1059,12 @@ class TextDoc: def end_bold(self): pass + def start_superscript(self): + pass + + def end_superscript(self): + pass + def start_listing(self,style_name): """ Starts a new listing block, using the specified style name. @@ -1129,3 +1135,12 @@ class TextDoc: text - text to write. """ pass + + def write_cmdstr(self,text): + """ + Writes the text in the current paragraph. Should only be used after a + start_paragraph and before an end_paragraph. + + text - text to write. + """ + pass diff --git a/gramps2/src/docgen/PdfDoc.py b/gramps2/src/docgen/PdfDoc.py index 7118d2d7c..92c34c5f7 100644 --- a/gramps2/src/docgen/PdfDoc.py +++ b/gramps2/src/docgen/PdfDoc.py @@ -177,6 +177,12 @@ class PdfDoc(TextDoc.TextDoc): def end_bold(self): self.text = self.text + '' + def start_superscript(self): + self.text = self.text + '' + + def end_superscript(self): + self.text = self.text + '' + def start_table(self,name,style_name): self.in_table = 1 self.cur_table = self.table_styles[style_name] @@ -280,6 +286,8 @@ class PdfDoc(TextDoc.TextDoc): text = text.replace('&','&'); # Must be first text = text.replace('<','<'); text = text.replace('>','>'); + text = text.replace('<super>',''); + text = text.replace('</super>',''); self.text = self.text + text.replace('\n','
'); #------------------------------------------------------------------------ diff --git a/gramps2/src/plugins/count_anc.py b/gramps2/src/plugins/count_anc.py index 7a7168725..41e3cb747 100644 --- a/gramps2/src/plugins/count_anc.py +++ b/gramps2/src/plugins/count_anc.py @@ -78,7 +78,7 @@ class CountAncestors: top = topDialog.get_widget("summary") textwindow = topDialog.get_widget("textwindow") - topDialog.get_widget("summaryTitle").set_text(title) + topDialog.get_widget("title").set_text(title) textwindow.get_buffer().set_text(text) top.show()