Comments (8)
有问题的文档(同时包含 保持行距正常的代码块 + 行距明显变宽的代码块)导出为 .sy.zip 上传看一下
from siyuan.
文档较大,把上面图片中所示的几个代码块集中在一个文档中导出了。
test.sy.zip
from siyuan.
{: id="20240525153110-yudwakz" linenumber="false" style="line-height: 44px;" updated="20240525153110"}
有问题的代码块被添加了一个 line-height: 44px;
的 style ,并且会在关闭行号的情况下生效(包括手动关闭行号 linenumber="false"
)
@QMike0 这些有问题的代码块是哪里来的?
from siyuan.
@QMike0 这些有问题的代码块是哪里来的?
大多是在链滴里面复制过来的。不过很多没有问题的代码块也是从链滴里面复制的。所以原来是复制过来的代码的问题吗?
有问题的代码块被添加了一个 line-height: 44px; 的 style ,并且会在关闭行号的情况下生效(包括手动关闭行号 linenumber="false" )
如何删除这个style呢。在代码块的属性里面没有找到相应的设置
from siyuan.
这些有问题的代码块是哪里来的?
大多是在链滴里面复制过来的。不过很多没有问题的代码块也是从链滴里面复制的。所以原来是复制过来的代码的问题吗?
@88250 复制粘贴代码块有可能被添加 line-height: 44px;
的 style
吗?如果会的话是不是应该在粘贴的时候删除掉?
from siyuan.
如何删除这个style呢。在代码块的属性里面没有找到相应的设置
我也不知道,@88250 有办法吗?
from siyuan.
复制粘贴代码块有可能被添加 line-height: 44px; 的 style 吗?如果会的话是不是应该在粘贴的时候删除掉?
从外部复制/剪藏的时候不会带样式的。没有可能是某个插件添加的?
如何删除这个style呢
目前只能直接改 .sy,把自定义属性中的 style 这行w完整删掉:
后续我们看下是不是能通过 块标菜单 - 外观 - 清除样式 来清理 @Vanessa219
from siyuan.
清除样式只能清除外观里面设置过的,有些样式是固定的,清除后会产生其他问题。
目前要找到行高从哪里设置的,然后从根本上解决问题。
from siyuan.
Related Issues (20)
- cnblog网页剪报代码块格式混乱 HOT 2
- 支持清理未使用的数据库 HOT 1
- 块标没了 HOT 1
- Software becomes laggy after a period of no operation HOT 1
- Improve pasting nearby some inline elements
- 快捷添加文本到 `虚拟引用关键字排除列表` HOT 1
- 使用快捷键 `复制为XX` 后选中与高亮该块 HOT 7
- Improve rollback doc file history HOT 3
- 一个始终是 `未命名` 的动态锚文本 HOT 3
- Improve `Enter` outdent after adjusting image size in the list
- Improve the block fold icon button in the backlink panel HOT 1
- Add confirm dialog for `Restore Default Layout`
- The exception occurs in the Settings - About on the Microsoft Store edition
- 升级后新版本后代码编辑器有BUG HOT 17
- Improve untitled doc placeholder HOT 1
- The browser extension supports Wikipedia formula clipping HOT 1
- OCR api 返回文字坐标信息 HOT 11
- 拖拽文档时隐藏悬浮提示
- The User Guide is no longer opened repeatedly when multiple windows exist HOT 1
- 在代码块内粘贴时异常跳动
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from siyuan.