From 34f9b4e1ec6bddcd83e1dea49593674f5787b3c2 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Wed, 5 Oct 2016 08:55:26 +0200 Subject: Improve formatting of sender/receiver. --- scrapersources/postliste-narvik-kommune | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapersources/postliste-narvik-kommune b/scrapersources/postliste-narvik-kommune index ecd6b29..34b7511 100644 --- a/scrapersources/postliste-narvik-kommune +++ b/scrapersources/postliste-narvik-kommune @@ -127,7 +127,7 @@ def fetch_postjournal_entry(parser, datastore, entryurl): # recipient/sender mottakere = root.cssselect("div.dokmottakere") if mottakere: - fratil = mottakere[0].text_content() + fratil = lxml.html.fromstring(lxml.html.tostring(mottakere[0]).replace('
', ", ")).text_content() if parser.is_sender_doctype(doctype): fratilfield = 'sender' elif parser.is_recipient_doctype(doctype): -- cgit v1.2.3