|
@@ -305,12 +305,13 @@
|
|
|
function mytrim(text){
|
|
|
text = text.replace(/(^[\s( ) ]*)|(\s*$)/gi,"");
|
|
|
var img_Str = text.match(/^(<IMG|EMBED\gi)([\s\S]*?)>/);
|
|
|
- if(img_Str!=null){
|
|
|
- text = text.replace(img_Str[0],"<p align=center>"+img_Str[0]+"</p>"+"<p style='margin-bottom:13px'> ");
|
|
|
- return (text!="")? text + "</p>": "";
|
|
|
- }else{
|
|
|
- return (text!="")? "<p style='margin-bottom:13px;;color:#323036'> " + text + "</p>" : ""
|
|
|
- }
|
|
|
+ if(img_Str!=null){
|
|
|
+ text = text.replace(img_Str[0],"<p align=center>"+img_Str[0]+"</p>"+"<p style='margin-bottom:13px;text-indent: 2em;text-align: justify;'>");
|
|
|
+ return (text!="")? text + "</p>": "";
|
|
|
+ }else{
|
|
|
+ // 首行缩进2
|
|
|
+ return (text!="")? "<p style='margin-bottom:13px;color:#323036;text-indent: 2em;text-align: justify;'>" + text + "</p>" : ""
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|