|
  
- 帖子
- 76
- 威望
- 0
- 阅读权限
- 200
|
1#
发表于 2010-1-18 17:53
| 只看该作者
[网络] Discuz 6 升级到7 后 内容不会自动换行解决办法
开启了html 功能 用代码模式不能换行了 一定要使用<br>才能换行
在/include/discuzcode.func.php
查找:
return $htmlon || $allowhtml ? $message : nl2br(str_replace(array("\t", ' ', ' '), array(' ', ' ', ' '), $message));
修改为:
return $htmlon || $allowhtml ? nl2br($message) : nl2br(str_replace(array("\t", ' ', ' '), array(' ', ' ', ' '), $message));
哈哈~!!!!!!!!!!!!!!!!!!
如果找不到 就找
return $htmlon || $allowhtml ? $message
把里面的$message改成nl2br($message)就行了
如果还解决不了,就修改成如下格式-
- return $htmlon || $allowhtml ? nl2br($message) : nl2br(str_replace(array("\t", ' ', ' '), array(' ',
- ' ', ' '), $message));
复制代码 |
|