Drupal 在文本中添加额外间距
我使用的是 Drupal6,即使禁用了所见即所得,某些东西也会出现在我意想不到的空白处。
例如,如果我输入:
<p>HI there (you)</p>
一切都很好。
如果我输入:
<p>HI there (<strong>you</strong>)</p>
我在左括号和“you”之间有一个空格:
Hi there ( you)
当我保存并返回正文文本区域时,我看到:
HI (
你)
因此,在纯文本中添加换行符,创建该空间。这不是一个
标签,只是 HTML 中的 \n 。知道如何解决这个问题吗?
I am on Drupal6, and even with the WYSIWYG disabled, something is putting in white space where I don't expect it.
For example if I enter:
<p>HI there (you)</p>
All is good.
If I enter:
<p>HI there (<strong>you</strong>)</p>
I get a space between the opening parentheses and "you":
Hi there ( you)
When I save and go back in to the body textarea I see:
<p>HI there (
<strong>you</strong>)</p>
So something is putting a line break in the plain text, creating that space. It is not a <br> tag, just a \n in the HTML. Any idea how to solve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查您的输入过滤器和 WYSIWYG Cleanup &输出设置。这对我有用:
过滤器
• HTML 校正器
• URL 过滤器
清理和清理输出设置
• 验证 HTML
• 预格式化
• 将
标签转换为样式
我猜测由于某种原因它仍在应用清理和清理。与所见即所得相关的输出设置,即使您在视觉上禁用了它。
Check your input filters and your WYSIWYG Cleanup & Output settings. Here's what works for me:
Filters
• HTML Corrector
• URL Filter
Cleanup & Output Settings
• Verify HTML
• Preformatted
• Convert
<font>
tags to stylesI'm guessing for some reason it's still applying the cleanup & output settings associated with the wysiwyg even if you have it visually disabled.
事实证明,这不是 ckeditor 或过滤器。我正在使用 tidy 整理输出标记,但忘记了我正在这样做。 output-xml 和 ouput-html 选项(ASFAIK 只控制漂亮的打印)添加了空格。我将它们设置为 false,问题就消失了。
Turns out, this was not ckeditor or filters. I am tidying the output markup using tidy, and forgot I was doing it. The output-xml and ouput-html options, which ASFAIK just control pretty printing, were adding spaces. I set those to false, and the problem went away.