Git Product home page Git Product logo

Comments (8)

TCOTC avatar TCOTC commented on July 17, 2024

有问题的文档(同时包含 保持行距正常的代码块 + 行距明显变宽的代码块)导出为 .sy.zip 上传看一下

from siyuan.

QMike0 avatar QMike0 commented on July 17, 2024

文档较大,把上面图片中所示的几个代码块集中在一个文档中导出了。
test.sy.zip

from siyuan.

TCOTC avatar TCOTC commented on July 17, 2024

{: id="20240525153110-yudwakz" linenumber="false" style="line-height: 44px;" updated="20240525153110"}

有问题的代码块被添加了一个 line-height: 44px; 的 style ,并且会在关闭行号的情况下生效(包括手动关闭行号 linenumber="false"

@QMike0 这些有问题的代码块是哪里来的?

from siyuan.

QMike0 avatar QMike0 commented on July 17, 2024

@QMike0 这些有问题的代码块是哪里来的?

大多是在链滴里面复制过来的。不过很多没有问题的代码块也是从链滴里面复制的。所以原来是复制过来的代码的问题吗?

有问题的代码块被添加了一个 line-height: 44px; 的 style ,并且会在关闭行号的情况下生效(包括手动关闭行号 linenumber="false" )

如何删除这个style呢。在代码块的属性里面没有找到相应的设置

from siyuan.

TCOTC avatar TCOTC commented on July 17, 2024

这些有问题的代码块是哪里来的?

大多是在链滴里面复制过来的。不过很多没有问题的代码块也是从链滴里面复制的。所以原来是复制过来的代码的问题吗?

@88250 复制粘贴代码块有可能被添加 line-height: 44px;style 吗?如果会的话是不是应该在粘贴的时候删除掉?

from siyuan.

TCOTC avatar TCOTC commented on July 17, 2024

如何删除这个style呢。在代码块的属性里面没有找到相应的设置

我也不知道,@88250 有办法吗?

from siyuan.

88250 avatar 88250 commented on July 17, 2024

复制粘贴代码块有可能被添加 line-height: 44px; 的 style 吗?如果会的话是不是应该在粘贴的时候删除掉?

从外部复制/剪藏的时候不会带样式的。没有可能是某个插件添加的?

如何删除这个style呢

目前只能直接改 .sy,把自定义属性中的 style 这行w完整删掉:

image

后续我们看下是不是能通过 块标菜单 - 外观 - 清除样式 来清理 @Vanessa219

from siyuan.

Vanessa219 avatar Vanessa219 commented on July 17, 2024

清除样式只能清除外观里面设置过的,有些样式是固定的,清除后会产生其他问题。

目前要找到行高从哪里设置的,然后从根本上解决问题。

from siyuan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.