instapy-cli icon indicating copy to clipboard operation
instapy-cli copied to clipboard

No breaklines in captions

Open joseincandenza opened this issue 5 years ago • 4 comments

I'm testing the library. Following the example found at examples/upload-a-photo.py, I use '\r\n' to mark a breakline in the caption, but it's not working. I have tested \n too. Is it a normal behaviour? How can I insert a breakline in the caption?

joseincandenza avatar Apr 21 '19 09:04 joseincandenza

Hi, I have the same problem! Is there anyone where the new line works?

pimboli avatar Apr 26 '19 17:04 pimboli

Hello, unfortunately, we have the same problem. Can someone help us, please?

Thank you

alteoxCOM avatar May 01 '19 07:05 alteoxCOM

Please, add also these informations:

  • python version
  • instapy-cli version
  • code to replicate the issue

The examples work as expected, code example is:

text = 'This will be the caption of your photo.' + '\r\n' + 'You can also use hashtags! #hash #tag #now'

b3nab avatar May 04 '19 15:05 b3nab

Hi, here the required informations:

  • Python 3.6.7
  • instapy-cli 0.0.9.0 | python 3.6.7

text = 'This will be the caption of your photo.' + '\r\n' + 'You can also use hashtags!' + '\r\n' + ' #hash #tag #now'

=>> The first breakline does work, but the second doesn't.

So it seems that only one new line per string is working. https://imgur.com/l6h0Fdj

alteoxCOM avatar May 05 '19 10:05 alteoxCOM