Remove left whitespace from all wrapped, non-preformatted lines #169
Labels
No Label
blocked
bug
build
documentation
duplicate
enhancement
finger
gemini
gopher
help wanted
http
in progress
invalid
local
needs-info
non-code
non-functional
non-urgent
question
release
rendering
suggestion
telnet
terminal
urgent
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sloum/bombadillo#169
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Here's an example from
gemini://tilde.black:1965/users/fox/vintagetv/superman-01.gmi
, where you can see that the 3rd and 4th line start with extra spaces.This is obviously non-urgent, but I thought I might look into adding it myself, and wanted to file an issue to keep track of it. If I shouldn't file issues like this (and just keep track of it personally), please let me know.
I'm not sure how I feel about this. In that, it isn't extra whitespace... it just happens to have ended up at the beginning of a line. But it is definitely whitespace that was included by the content author.
I can definitely see why someone might want this whitespace removed. I have actually been wanting Bombadillo to remove consecutive whitespace for non-preformatted text for gemini as well (as is optionally acceptable by the spec). I have shelved that particular desire for the time, given the following:
I do not think it will be possible with the current rendering engine. Wrapping is handled the same way for every protocol and gemini is not treated differently or individually. I'm not sure how I feel about having a fix to this affecting non-gemini protocols (given their current state of being handled together, if interests were separated that might be less of a worry). Add to that the fact that the line wrapping module has no knowledge whatsoever what a preformatted text block is (that is handled at the parser level), nor what gemini is (vs gopher or finger).
This would be a major rebuild of many core elements of Bombadillo:
Definitely no worries opening the issue! I get where this is coming from. My instinct is to say this will likely find its way into 3.0.0+, but you are more than welcome to try and tackle it as a part of the 2.x.x series if you want to go for it. Definitely feel free to keep notes here or ask questions/check in. Feel free to e-mail as well if you get in deep and need some guidance.
So that you do not do a lot of work for nothing, I want to be up front about the following:
Outside of those things (I believe two of the three are mentioned in our
DEVELOPING.md
file), have at it!I have marked this with a
3.0.0
milestone, but dont let that stop anyone from trying to handle it as a part of2.x.x
.3.0.0
will be a major rewrite of the application, likely from the ground up, so marking this as3.0.0
can inform or goals and planning for that eventuality.Woah, seems a lot bigger than I thought. Thanks for explaining how one might go about it though, it's helpful.
One nitpick:
As far as I can tell, this isn't true. Section 5.3.1 of the spec says "Consecutive blank lines should NOT be collapsed into a fewer blank lines."
No worries. Yeah, it would be a big project.
By whitespace I meant actual space characters, not newlines.
From the spec:
Drilling down to the specific point:
It does go on to give a specific example that is not what I mention, but the spec seems to allow for it between the above and the following:
Ah okay, I see what you mean.