Skip to content

Instantly share code, notes, and snippets.

@mrmt
Last active March 8, 2016 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrmt/cb18ae7fb2281f3662a0 to your computer and use it in GitHub Desktop.
Save mrmt/cb18ae7fb2281f3662a0 to your computer and use it in GitHub Desktop.
@@ -397,11 +421,15 @@
$itemVar['body'] = preg_replace_callback($delim_expr, array(&$this, '_convertDelim'), $itemVar['body']);
$itemVar['more'] = preg_replace_callback($delim_expr, array(&$this, '_convertDelim'), $itemVar['more']);
if( $stripbr ){
$itemVar['body'] = preg_replace("/([\r\n])/","$1",$itemVar['body']);
$itemVar['more'] = preg_replace("/([\r\n])/","$1",$itemVar['more']);
}
+ // mrmt
+ $itemVar['body'] = $this->unfold($itemVar['body']);
+ $itemVar['more'] = $this->unfold($itemVar['more']);
+
echo preg_replace("/(\r\n|\n|\r)/m", "\n", mb_convert_encoding( $tpl->fill($entryTpl, $itemVar, null), 'UTF-8', _CHARSET
@mrmt
Copy link
Author

mrmt commented Mar 8, 2016

NucleusからWordPressへ移行 - なんか:かんがえて-6
http://blog.mrmt.net/entry/2010/09/11/050933

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment