diff --git a/openslides/motions/config_variables.py b/openslides/motions/config_variables.py index 8f754e2b9..30db67794 100644 --- a/openslides/motions/config_variables.py +++ b/openslides/motions/config_variables.py @@ -227,12 +227,3 @@ def get_config_variables(): weight=375, group='Motions', subgroup='Export') - - yield ConfigVariable( - name='motions_pdf_paragraph_numbering', - default_value=False, - input_type='boolean', - label='Show paragraph numbering (only in PDF)', - weight=380, - group='Motions', - subgroup='Export') diff --git a/openslides/motions/pdf.py b/openslides/motions/pdf.py index 8d101d6d3..edc415421 100644 --- a/openslides/motions/pdf.py +++ b/openslides/motions/pdf.py @@ -273,7 +273,6 @@ def convert_html_to_reportlab(pdf, text): tag.unwrap() # print paragraphs with numbers text = soup.body.contents - paragraph_number = 1 for paragraph in text: paragraph = str(paragraph) # ignore empty paragraphs (created by newlines/tabs of ckeditor) @@ -281,11 +280,7 @@ def convert_html_to_reportlab(pdf, text): continue if "
" in paragraph:
             txt = paragraph.replace('\n', '
').replace(' ', ' ') - if config["motions_pdf_paragraph_numbering"]: - pdf.append(Paragraph(txt, stylesheet['InnerMonotypeParagraph'], str(paragraph_number))) - paragraph_number += 1 - else: - pdf.append(Paragraph(txt, stylesheet['InnerMonotypeParagraph'])) + pdf.append(Paragraph(txt, stylesheet['InnerMonotypeParagraph'])) elif "" in paragraph: pdf.append(Paragraph(paragraph, stylesheet['InnerListParagraph'])) elif "" in paragraph: pdf.append(Paragraph(paragraph, stylesheet['InnerH3Paragraph'])) else: - if config["motions_pdf_paragraph_numbering"]: - pdf.append(Paragraph(paragraph, stylesheet['InnerParagraph'], str(paragraph_number))) - paragraph_number += 1 - else: - pdf.append(Paragraph(paragraph, stylesheet['InnerParagraph'])) + pdf.append(Paragraph(paragraph, stylesheet['InnerParagraph'])) def all_motion_cover(pdf, motions):