فهرست منبع

Fixed a new line lost with at the end of quotes

Signed-off-by: emanuele <emanuele45@gmail.com>
emanuele 13 سال پیش
والد
کامیت
73cc1d2158
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      Themes/default/scripts/jquery.sceditor.bbcode.js

+ 3 - 1
Themes/default/scripts/jquery.sceditor.bbcode.js

@@ -1133,7 +1133,9 @@
 
 					content = '';
 					$(element).children("cite:first").remove();
-					content = this.elementToBbcode($(element));
+
+					var preserve_newline = $(element).children().last().is("br") && $(element).children().last().last().is("br");
+					content = this.elementToBbcode($(element)) + (preserve_newline ? "\n" : '');
 				}
 				else
 				{