As an alternative to using the scripting console, you can use the non-breaking-space character "
".
(On Windows, in Notepad, you can get this character by holding Alt and typing 255 on the number-pad).
- Put your text in a text editor and Find & Replace all spaces with a non-breaking-space character.
- Replace line-breaks with a single real space, so everything is all on one line.
- Add more non-breaking-space characters as needed before lines that are too short to cause wrapping.
Optionally lower the "Wrap Width" if possible so you don't have to add so many.
Example:
Here I am using the ▲
character instead of the non-breaking-space character for illustrative purposes.
Use:
Hello▲world!▲How▲have▲you▲been▲doing? I▲am▲fine,▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ thank▲you.
To get:
Hello world! How have you been doing?
I am fine,
thank you.
\n
in a bunch of ways,but it doesn't output the next string on a new line. Not sure if there are any other newline characters other than\n
in C++/Python. However on using the\n
command ,the output in the Info window shows an additional`. If I am not mistaken,
` is used to concatenate strings in C++. It means Blender automatically concatenates strings entered in the text block. Is there any way around this? [![enter image description h $\endgroup$line1(insert a new line)line2
. They wanted to avoid that (I guess just because people who don't code would be confused when they were trying to writeI like pasta\noodles
and it showed ``` I like pasta oodles ``` So, whenever a backslash is inserted into the string, they automatically add another backslash in front of it, essentially allowing the string to output everything that is written literally. This isn't necessarily accurate (just my thoughts), but it would explain why they add the slash. $\endgroup$