showdoc icon indicating copy to clipboard operation
showdoc copied to clipboard

合并单元格中的多余空间

Open ReviewClouds opened this issue 3 years ago • 5 comments

你好 使用table样式的时候会出现一大段空格,这个应该怎样消除呢?

image

ReviewClouds avatar Apr 11 '22 05:04 ReviewClouds

markdown编辑器会把换行符翻译为换行,所以输入html标签的时候,标签与标签之间不要包含换行,会被转义为br换行或者p段落。

star7th avatar Apr 11 '22 06:04 star7th

标签与标签之间不要包含换行,这样的话整个html语句变得不易读,有什么解决办法吗

ReviewClouds avatar Apr 11 '22 07:04 ReviewClouds

我也遇到这个问题了,表格还比较大,只能编辑的时候找个格式化工具,粘过来的时候再压缩,很不方便

zhuqinghua avatar Apr 12 '22 08:04 zhuqinghua

如果项目里面页面不多,可以使用该临时方式,直接删掉自动换行,只不过这样的话,写的页面内容每一行内容都要手动去换行,不然会贴到一起。暂时没时间研究更优的方式,就当是规范自己的写法吧。 image

yincangshiwei avatar May 10 '22 08:05 yincangshiwei

要判断标签然后去掉标签之间的换行符,这玩意需要探索一下,也许需要正则匹配。我有时间再看下

star7th avatar May 10 '22 08:05 star7th

暂时未找到办法

rd-machine @.***> 于2022年4月11日周一 15:55写道:

标签与标签之间不要包含换行,这样的话整个html语句变得不易读,有什么解决办法吗

— Reply to this email directly, view it on GitHub https://github.com/star7th/showdoc/issues/1670#issuecomment-1094670548, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQZHLXPSP6ZIVVVW4FIJ7LVEPLHLANCNFSM5TCBNDYA . You are receiving this because you commented.Message ID: @.***>

star7th avatar Oct 11 '22 08:10 star7th