Handle <P> tag as line break. Otherwise, paragraphs will appear in the same line. release-2.x.y

Mon, 30 Mar 2020 13:03:53 +0800

author
Colin Xu <colin.xu@gmail.com>
date
Mon, 30 Mar 2020 13:03:53 +0800
branch
release-2.x.y
changeset 40320
0de6006362d2
parent 40239
0a7484792f62
child 40321
f7a993ac9c2a

Handle <P> tag as line break. Otherwise, paragraphs will appear in the same line.

pidgin/gtkimhtml.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkimhtml.c	Mon Dec 16 20:20:20 2019 -0600
+++ b/pidgin/gtkimhtml.c	Mon Mar 30 13:03:53 2020 +0800
@@ -2863,6 +2863,8 @@
 				case 25:	/* BR */
 				case 58:	/* BR/ */
 				case 61:	/* BR (opt) */
+				case 29:	/* P */
+				case 30:	/* /P */
 					ws[wpos] = '\n';
 					wpos++;
 					br = TRUE;
@@ -2936,8 +2938,6 @@
 					ws[0] = '\0'; wpos = 0;
 					break;
 
-				case 29:	/* P */
-				case 30:	/* /P */
 				case 31:	/* H3 */
 				case 32:	/* /H3 */
 				case 33:	/* HTML */

mercurial