Closed frakman1 closed 7 years ago
Put the text before the |
or after a newline.
Interesting.
Put the text before the |
I would never have thought of that since that would imply that the text came first. But that worked! Thank you!
So, using this form:
print "Text Here|image="+str(imsgicon).encode("utf-8")
results in:
Which seems backwards. However,
or after a newline.
That definitely puts it on the next line which is not what the intent was. The desire (in this case) is to put the image first, with the text along side it. Putting text after the new line like this:
print "|image="+str(imsgicon).encode("utf-8") +"\n Text Here"
#is this what you meant?
results in:
So how does this work? What if:
|bash=
go in this case, relative to the |image=
that I already have written.The order things go in is not intuitive (at least not to me) and the instructions are not unambiguously clear.
Images can only appear to the left. You can use an icon font or emojis for inline.
Ah. Thank you for clearing that up. That is definitely not documented.
(I am using python for a plugin and latest BitBar on Mac running Sierra 10.12.5)
Using the following code works:
and yields:
But then I add some text after it and it won't show up. I get the exact same result as before.
Where did the text go?