Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

</br>标签如果放在裸text之后,不应该在下面以block形式单独显示一空行,而仅仅应该结束该行 #26

Open
beiyang99 opened this issue May 19, 2019 · 2 comments

Comments

@beiyang99
Copy link

beiyang99 commented May 19, 2019

我们需要的是类似这样子的,各行之间比较紧凑。
ok

实际得到的是下面这样子的,各行之间距离非常大。
iffy_pic

下面的附件snippet.txt是我们的测试代码 :
code

snippet.txt

请问该如何才能显示正常呢?

多谢~!~

@beiyang99 beiyang99 changed the title 解析裸Text(没有被p, span等其它标签包裹的纯文本), 会自动将该text行显示高度变成24 解析裸Text(没有被p, span等其它标签包裹的纯文本), 会自动增加很多高度为24的空行 May 20, 2019
@beiyang99 beiyang99 changed the title 解析裸Text(没有被p, span等其它标签包裹的纯文本), 会自动增加很多高度为24的空行 </br>标签如果放在裸text之后,不应该在下面以block形式单独显示一空行,而仅仅应该结束该行 May 20, 2019
@bestyxie
Copy link
Contributor

小程序没有 br 对应的标签,所以只能转成 view 标签,一个 view 标签就一个空白行,建议删除多余的 br 标签,

@CondiGao
Copy link

CondiGao commented Aug 7, 2021

小程序没有 br 对应的标签,所以只能转成 view 标签,一个 view 标签就一个空白行,建议删除多余的 br 标签,

即使没有br标签

123

123

这种两个p标签也会渲染一个空view出来,请问有什么解决办法吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants