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

Idea: deindent, text wrapping utility #36

Open
vindarel opened this issue Jan 1, 2020 · 4 comments
Open

Idea: deindent, text wrapping utility #36

vindarel opened this issue Jan 1, 2020 · 4 comments

Comments

@vindarel
Copy link
Owner

vindarel commented Jan 1, 2020

Make the tilde newline format directive transparent, so than we could write text with indentation in our code, with no indentations in the final string:

(format nil "---~
   +++")
"---+++"

with ~: and ~@ modifiers.

(format nil "---~@
   +++")
"---
+++"

see also https://github.com/sjl/bobbin for wrapping strings.

@FOSSilizedDaemon
Copy link

Make the tilde newline format directive transparent, so than we could write text with indentation in our code, with no indentations in the final string:

(format nil "---~
   +++")
"---+++"

with ~: and ~@ modifiers.

(format nil "---~@
   +++")
"---
+++"

see also https://github.com/sjl/bobbin for wrapping strings.

Could you expand on the format directive? This project seems dead so I have reinvented the whole thing. Looking for new ideas now lol.

@vindarel
Copy link
Owner Author

The format directives: ~ plus a newline allows to format the format string with newlines, but to not have newlines in the result. ~@ is similar, we can also indent our directive with tabs that we won't see in the results. It's for dev comfort.

This project seems dead

sorry but what project?????????????????

@FOSSilizedDaemon
Copy link

FOSSilizedDaemon commented Dec 31, 2022

The format directives: ~ plus a newline allows to format the format string with newlines, but to not have newlines in the result. ~@ is similar, we can also indent our directive with tabs that we won't see in the results. It's for dev comfort.

This project seems dead

sorry but what project?????????????????

It is going to go under a massive overhaul when I finish my logging library, but it is this. Unless you meant which project I felt seemed dead. I was referring to this one as I did not realize how recent the commits were, I read the date wrong.

@mdbergmann
Copy link

Do we need another library? Does this feature not fit here nicely?

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

No branches or pull requests

3 participants