But, will everyone without BBLOG be able to see the line break?The line break exist, i only make it visible... people that will use this will be able to see posts better. Everyone has the ability to make a line break, and they actually use it but it is then not visible...
Who said that? I missed sth? lolbrain wrote:Em, i don't know why you say it makes no sense?
Everyone uses break lines when they post... when you enable them, you have a much better understanding of what they say... this must be a battlelog bug, that's why i say FIX.brain wrote:The plugin just make the overview for the feeds better.
If anybody wants to use it, they can use it without restrictions for non plugin users.
The line breaks still exist in the battlelog feeds, but not shown.
The plugin only enable the line breaks for the user that uses this plugin.
Thats the main part of bblog, make things better and more usefull for the user :-)
So, i won't include it into BBLog but its a nice addition.
$(this).html($(this).html().replace(/\n/gi,'').replace('',''));
$(this).html($.trim($(this).html()).replace(/\n/gi,''));
Take a better look. What i do is that i change the first back to a space... when i do it this way an extra break line appear at the start so i have to change it back ;)...brain wrote:Looks as it should be.
But why you use this 2 replaces instead of one
$(this).html($(this).html().replace(/\n/gi,'').replace('',''));
this should also work
$(this).html($.trim($(this).html()).replace(/\n/gi,''));
I can't understand where the bug is... this is what this plug in does...xXJumpyXx wrote:Found a small little bug in the plugin. All messages left on someone's battle feed will be a little bit messed up. I'll write up a small example below :P
This also makes it so you can't mark the text if you want to copy it.
----Without the Plugin----
xXJumpyXx» DJ-Brainnrg: Great work on BBLog :)
----With the Plugin----
xXJumpyXx»
DJ-Brainnrg: Great work on BBLog :)
I'm using Firefox, I haven't tried this on Chrome.
GreatApo wrote:I can't understand where the bug is... this is what this plug in does...xXJumpyXx wrote:Found a small little bug in the plugin. All messages left on someone's battle feed will be a little bit messed up. I'll write up a small example below :P
This also makes it so you can't mark the text if you want to copy it.
----Without the Plugin----
xXJumpyXx» DJ-Brainnrg: Great work on BBLog :)
----With the Plugin----
xXJumpyXx»
DJ-Brainnrg: Great work on BBLog :)
I'm using Firefox, I haven't tried this on Chrome.
The reason I called it a bug was because it makes all messages left in battle feeds look broken.GreatApo wrote:I can't understand where the bug is... this is what this plug in does...
Yes, you are right but this is up to you how you will write it... when you write a big comment and you break lines to make paragrafs or just go to a new line, you have a far more better look...xXJumpyXx wrote:The reason I called it a bug was because it makes all messages left in battle feeds look broken.
It might not really be a bug but you have to agree, it looks better the normal way.
xXJumpyXx» DJ-Brainnrg: {message}
VS.
xXJumpyXx»
DJ-Brainnrg: {message}
I'm just trying to help.
EDIT: In case you misunderstood what I meant, do what wasakakero said :)
The thing is that the part that gets broken (the names) aren't written by the user. It's automatic. It doesn't matter if the message is 1 letter or 100 letters long.GreatApo wrote:Yes, you are right but this is up to you how you will write it... when you write a big comment and you break lines to make paragrafs or just go to a new line, you have a far more better look...
Yea, i just found out what you mean, i will try to fix such isues... thanks for informing me.xXJumpyXx wrote:The thing is that the part that gets broken (the names) aren't written by the user. It's automatic. It doesn't matter if the message is 1 letter or 100 letters long.