Skip to content

Improve the display of line numbers of code blocks with paging in PDF export #9471

Closed
@dream-tentacle

Description

@dream-tentacle

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

When extracting a PDF file, if there is a code block which is cut into two pages, the line numbers are a mess.
image

Expected result

make sure the line numbers are correct

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.10.11
- Operating System: Windows 11

Log file

No need I think

More information

No response

Activity

changed the title [-]Please enter the title of the bug report[/-] [+]The code block's line numbers are a mess in PDF file[/+] on Oct 21, 2023
88250

88250 commented on Oct 21, 2023

@88250
Member

If convenient, please provide code blocks or export .sy.zip for uploading for testing, thank you.

Ref: https://ld246.com/article/1697600947047

dream-tentacle

dream-tentacle commented on Oct 22, 2023

@dream-tentacle
Author

第十一周.sy.zip

If convenient, please provide code blocks or export .sy.zip for uploading for testing, thank you.

Ref: https://ld246.com/article/1697600947047

changed the title [-]The code block's line numbers are a mess in PDF file[/-] [+]Improve PDF export code block line number display[/+] on Oct 22, 2023
added a commit that references this issue on Oct 24, 2023
added this to the 2.10.13 milestone on Oct 24, 2023
added a commit that references this issue on Oct 24, 2023
removed this from the 2.10.13 milestone on Oct 24, 2023
Vanessa219

Vanessa219 commented on Oct 24, 2023

@Vanessa219
Member

又优化了下,还麻烦下个版本看看。如果行数过多的话 ,Chrome 导出存在分页时也会有同样的问题,估计只能移除行号再导出了。

added 2 commits that reference this issue on Oct 24, 2023
added this to the 2.10.13 milestone on Oct 24, 2023

7 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@dream-tentacle

      Issue actions

        Improve the display of line numbers of code blocks with paging in PDF export · Issue #9471 · siyuan-note/siyuan