Skip to content

Commit

Permalink
91191
Browse files Browse the repository at this point in the history
  • Loading branch information
remyvdwereld committed Sep 19, 2023
1 parent 8e5a58b commit a4cba9b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/apps/openzaak/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import logging
import mimetypes
import pathlib
import textwrap
import uuid
from datetime import date
from typing import List
Expand Down Expand Up @@ -61,9 +60,9 @@ def _get_description(id, zaaktype_identificatie):
dat dit enige tijd kan duren. Het kan bijvoorbeeld voorkomen dat toezichthouders meerdere malen naar het
adres toe moeten voor hun onderzoek.
"""

# Remove leading whitespace caused by indentation
return textwrap.dedent(description)
# Remove whitespace caused by indentation and create one single line.
single_line_string = " ".join(description.replace("\n", " ").split())
return single_line_string


def _build_zaak_body(
Expand Down

0 comments on commit a4cba9b

Please sign in to comment.