-
Notifications
You must be signed in to change notification settings - Fork 20
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
Text Linebreak #4
Comments
Hi @itaru2622 it's a step further and you can already do more with it, but it would be much better if you could use \n. |
@ohobby by my PR, you can pass any text to create_bsky_post.py via pipe as below. commandofmeasurement | create_bsky_post.py --options |
even with current main branch (without my PR), you can also pass multi-line text by using quote and ENTER-key as below. but as I described above, pipe with my PR is easier than below to integrate with other software. # current main branch (without my PR)
create_bsky_post.py --options 'first line<ENTER>
second line<ENTER>
more lines<ENTER>
'
|
newline char ('\n') in text is escaped to if you prefer to use --text option with '\n' in text, you can achieve it by below. cookbook/python-bsky-post/create_bsky_post.py Lines 305 to 309 in e806736
add following line just after the above. post["text"]=post["text"].replace("\\n","\n") then, it gets back newline from double escaped to usual single escape. |
Hi,
how can i make linebreaks in the text, i post with create_bsky_post.py?
Regards,
Oliver
The text was updated successfully, but these errors were encountered: