Automatically introducing `\n` (newlines) after some designated character count.
What's your thoughts about creating a variable with text objects, that automatically introduced \n
(newlines) after some designated character count.
That way, we don't have to mess with manually inputting \n
characters anymore in our material or type names or text literals, etc.
Example below illustrates adding a \n
after every 35 characters
Comments
There are text wrapping algorithms
it would help a lot to keep things more coherent. Maybe instead of number of characters it could be a dimension, after a certain length, since im note sure what a certain number of characters long is something, but i can visualize the size that i could need or want to fit my text. But at the end i guess both options do the job.
Added! :)
https://github.com/IfcOpenShell/IfcOpenShell/commit/812e3dc6df32e08fbe85051ccf752ac1d1b5f93c