jrfoell / campfire-libpurple

A Campfire protocol plugin for libpurple (Pidgin)
48 stars 16 forks source link

line breaks shown as <br> on website #13

Closed hsychla closed 11 years ago

hsychla commented 12 years ago

line breaks are not shown correctly on the campfire website

if i enter the following text in pidgin

please don't mind me this is just a test for a bug report on the campfire pidgin plugin sorry.

it comes out on the campfire website as

please don't mind me<br>this is just a test for a bug report on the campfire pidgin plugin<br>sorry.

whereas if I do it on the website, campfire does this insert-paste-fancy-thingy...

[Edited some times because github swallows the <br>]

msteinert commented 12 years ago

What would be the best way to handle this? Automatically post in paste-mode if a line-break is detected?

After a quick scan through the source it appears that paste-mode isn't currently supported.

jfoell commented 12 years ago

It seems that I've lost my access to the campfire account I was using for this development. I was hoping to test this issue. I'll see what I can do to get access to a campfire account again. How is this issue created? Do you have to cut & paste text into the message entry box? How do you insert a line break? (without sending the message?) Alt+Enter? I'm afraid I'm not as familiar with pidgin as those who use it every day :( Also I'm not familiar with 'paste-mode' but I'd be happy to help implement a fix if the solution is known.

mikeknoop commented 12 years ago

Yes, alt+enter or ctrl+enter allows line breaks in Pidgin. I think auto-paste mode when line-breaks are detected is the right way to go.

jfoell commented 11 years ago

Is fix confirmed? Can we close this?