-
Notifications
You must be signed in to change notification settings - Fork 34
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
Character alignment? #6
Comments
I think something like this is a good idea. I think I would prefer to incorporate it into the format string directly though, but I will see what I can do. Thanks for the suggestions! |
This could be solved similar to how multi-line equations can be aligned in LaTeX, where one may insert a |
To elaborate a bit, I think specifying an alignment string is a) limiting the possibilities for layout (imagine just aligning things with just a space in between) and b) prone to errors (" - " seems like it could be a common divider, but also occurs in song titles). |
Wheee, I was just searching for some functionality like this.
Instead we could add two new tokens to the format string:
Pros:
Btw: I like the coding style. Not many comments, but well readable :) |
Update: That means, only the parsing function void ScrollWindow::Print(uint32_t line) const |
Side note: I noticed, that using the $A to mean align really was the most intuitive "name" and since I don't really see why one would need absolute alignment, I used that name. However, really any letter can be chosen by changing 'A' to another letter in two places. |
|
I love the new custom format options! I do feel like it's lacking some alignment though. It would be great if you could specify a character to align on so that this:
would look like this:
if I set my alignment string to / - / (notice the spaces so The Pick-Up doesn't get aligned).
Would be a great enhancement!
The text was updated successfully, but these errors were encountered: