-
Notifications
You must be signed in to change notification settings - Fork 861
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
Newline character ("\n") takes a lot of space. #27
Comments
The code should be in default_styles, I suppose |
Yeah, I agree. Are u able to find the fix? |
@singerdmx Is it this parameter? |
Possible. Just try changing it |
Possibly the verticalSpacing |
@singerdmx In the source code the 3rd parameter (which is lineSpacing) is set to Tuple2(0.0, 0.0). Then how come the newlines are so greatly spaced?
|
Let me double check one thing: is it between text block? |
I have solved the issue by changing
to:
|
If the rendering is satisfactory (if it does not break other components), just submit it |
Rendering is satisfactory. I just changed all the Should I proceed with this? |
Yes, go ahead |
Can you submit it to stable branch? |
@singerdmx I only changed the baseSpacing of the paragraph attribute as other implementations were looking quite cramped. |
Actually I think |
Tuple2(6.0, 0) macthes checkbox's style, which I think is better |
You are right baseSpacing is actually pretty much necessary for checkboxes and lists. I was testing it out recently. |
Oh I see |
I submitted a5ce035 |
@singerdmx What attributes will be affected by this and to what degree? |
I think it affects the spacing between text blocks |
I actually tried manipulating this variable which you just changed in the commit. The paragraph was looking normal and the newline character wasn't taking extra space. However, the checkboxes and the list became cramped. Hence, I only changed the paragraph spacing. So you might wanna check that. |
Cramped? hmm... it looks fine to me |
Maybe I was just used to the previous styling in which everything was sort of spaced out. Also, any chance we can replace tuple with normal line height parameter? Would make things a lot simpler in my opinion. |
Yes, I agree. We should replace Tuple |
The newline character takes a lot of space and fills the entire screen pretty quickly.
In my opinion it should take as much space as the normal line in a paragraph does.
Right now it is taking twice as much.
The text was updated successfully, but these errors were encountered: