r22086 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Tue Jun 27 19:28:00 UTC 2017


Author: jghali
Date: Tue Jun 27 19:28:00 2017
New Revision: 22086

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22086
Log:
#14884: One more fix for "A blank character is added when importing an html file"

Modified:
    branches/Version14x/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp

Modified: branches/Version14x/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22086&path=/branches/Version14x/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp	(original)
+++ branches/Version14x/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp	Tue Jun 27 19:28:00 2017
@@ -397,7 +397,10 @@
 		else
 			--listLevel;
 		if (listLevel == -1)
+		{
+			lastCharWasSpace = true;
 			writer->append("\n");
+		}
 	}
 	else if (name == "ol")
 	{
@@ -431,7 +434,10 @@
 			--listLevel;
 		}
 		if (listLevel == -1)
+		{
+			lastCharWasSpace = true;
 			writer->append("\n");
+		}
 	}
 	else if (name == "li")
 	{




More information about the scribus-commit mailing list