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

Hard Line Breaks... doesn't use full line width #3867

Open
octaeder opened this issue Nov 3, 2024 · 1 comment
Open

Hard Line Breaks... doesn't use full line width #3867

octaeder opened this issue Nov 3, 2024 · 1 comment

Comments

@octaeder
Copy link
Contributor

octaeder commented Nov 3, 2024

Environment

  • TeXstudio: 4.8.5beta1 latest local msys2 build (without last 3 commits regarding hidden files)
  • Qt: latest msys2 (mingw-w64-ucrt-x86_64-qt6-base 6.8.0-2)
  • OS: Windows(10)
  • TeX distribution: miktex

Expected behavior

Using Idefix>Hard Line Break... from main menu should use whole line.

Actual behavior

In the upper half of the image you see a before-after-demo for txs 4.8.2 installed (same results up to alpha1 portable, beta1 port. not testable), while the lower half is from 4.8.5beta1 (local msys2 build, s. above). The latex code (given at the end) is pasted from the clipboard into a new editor.

image

As you can see, after applying Hard Line Breaks the text still uses the full line width in the first case. In the second case enough space for the next word remains at the end of the line after applying the function (and line seems to be longer). It may be important to test beta1 because Qt 6.8.0 (not 6.8.0-2) is used there.

How to reproduce

Editor Setup

Font Family: JetBrains Mono
Font Size: 9
Line Spacing: 100%

Adv. Editor Setup

Line Wrapping: Soft Line Wrap after max. Characters
Maximal Characters: 160

Hard Line Break...

... so many characters: 160
Smart scope selecting: checked
Join lines before wrapping: checked

latex code ```latex \documentclass[10pt,a5paper]{article} \begin{document} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, \end{document} ```
@sunderme
Copy link
Member

sunderme commented Nov 3, 2024

looks like a rounding issue.
As it is rather cosmetic and I really don't like to hard line wrap, a leave it for someone else to igre out.

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

No branches or pull requests

2 participants