Fix encoding of last line
authorAndre Heinecke <aheinecke@intevation.de>
Fri, 7 Sep 2018 08:28:11 +0000 (10:28 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Wed, 12 Sep 2018 07:01:38 +0000 (09:01 +0200)
commit1bc390e66c7a8933bab3d0962d0e05b948ea802d
tree1e589ba20d5729e10eae403415fd87a332056186
parente5a3717ab023f71b28c8d4caefdad0c72845020a
Fix encoding of last line

* src/mimedataprovider.cpp (get_body, get_html_body): Don't
append raw undecoded data anymore.
(MimeDataProvider::finalize): New. Parse the last unfinished data.
* src/parsecontroller.cpp (ParseController::parse): Call
finalize.

--
Before this a quoted printable line without a line feed at the
end would not be decoded. Leading to a broken display.

(cherry picked from commit a0671ccbb477e31d25547532004fa6fd16a29f78)
src/mimedataprovider.cpp
src/mimedataprovider.h
src/parsecontroller.cpp