-
Notifications
You must be signed in to change notification settings - Fork 2
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
Multiline base64 data is not folded correctly #12
Comments
Hello @keith-hall |
It turned out not to be massively simple (though it was certainly fun!), but I took the liberty of addressing one of your other outstanding issues while I was working on it, I hope you don't mind too much :) |
Thank you for your contribution! I'm glad it was fun to hack on this and you even added more tests! 😻 |
@keith-hall , thanks for changes! But base64 data URI don't split automatically for human readability and Sublime Text syntax highlighting. We need to create feature request to Image2Base64 package or here? Thanks. |
You'll want to create a feature request at the Image2Base64 package for that, or manually format the base64 |
@keith-hall , I don't understand: is it a question? Thanks. |
@Kristinita Nope, it wasn't a question - I'm saying that this package, base64-fold, is for code folding only. In my opinion, it shouldn't be changed to alter the contents of the files in any way. As you are using the Image2Base64 plugin to generate the base64, it would make sense if you created a feature request there, so that it would wrap the base64 that it generates to a certain number of characters per line. Alternatively, or for existing base64 code inside your files, you could manually insert line breaks where you want them. |
@keith-hall , my feature request. Thanks. |
(From https://en.wikipedia.org/wiki/Data_URI_scheme#Syntax)
Example:
Currently the
img
only gets the first line (iVBORw0KGgoAAAANSUhEUgAAAAUA
) folded (withbase64fold_all_uris
set to false), leaving the other lines unfolded. Theuri('
in the CSS doesn't get folded at all.CC @Kristinita re: sublimehq/sublime_text#513 (comment)
The text was updated successfully, but these errors were encountered: