Little Fighter Empire - Forums
space not being deleted / asciiart-tab - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Empire Zone (https://lf-empire.de/forum/forumdisplay.php?fid=1)
+--- Forum: Website Improvements (https://lf-empire.de/forum/forumdisplay.php?fid=5)
+--- Thread: space not being deleted / asciiart-tab (/showthread.php?tid=4858)

Pages: 1 2


space not being deleted / asciiart-tab - Bamboori - 04-20-2010

actually i wanted to show off my latest ascii art around here, but i failed cause of
this.
in fact, there are bunches of space's before that "this". but they are getting deleted. now i could post my art in formatted code, but then i got the problem that i can't change the font or font size.
so basically i am asking for a tab like following:

[ascii][/ascii] / [space][/space] = space being displayed

OR

simple removing the space-deleting function.

is one of that possible?


RE: space being not deleted / asciiart-tab - Ascor - 04-20-2010

or you could make a screenshot and post it ^^
i know it's not the same as it may be manipulated and stuff but^^
yeah less work


RE: space being not deleted / asciiart-tab - YinYin - 04-20-2010

(04-20-2010, 07:02 PM)Bamboori Wrote:  simple removing the space-deleting function.
thats a browser function really

use the code tags for ascii art or use a symbol similar to space


RE: space being not deleted / asciiart-tab - Bamboori - 04-20-2010

(04-20-2010, 07:04 PM)Hacker Wrote:  or you could make a screenshot and post it ^^
i know it's not the same as it may be manipulated and stuff but^^
yeah less work
that would totally destroy the meaning of an ascii-picture, you know. plus, you can't copy and paste it to text editors then.

@yinyin: i COULD do that. but its simply ugly D:


edit: ok i figured out that i can use a combination of space and dot. but for small arts one such that contain dots its still bad.


RE: space being not deleted / asciiart-tab - YinYin - 04-20-2010

oh cmon

find something that displays empty on some font and use that


RE: space not being deleted / asciiart-tab - MH-Razen - 04-20-2010

actually there`s a html tag called <pre> which is for pre-formated stuff - i attached it as BB Code - try this

Code:
[pre][/pre]

[pre]example....
bla
bla
blabla[/pre]

EDIT: Nave recognized the bug with new lines - this isn not normal for pre-tag, some other css or so must be reason for it, I will have a look into it...

Code:
bla
bla
  blabla

10101010101
1 1 1 1 1 1 1



RE: space not being deleted / asciiart-tab - MH-Razen - 04-22-2010

change of plans - support told my why there`s a new-line-bug. The solution is easy - use the code-tag, i just changed the font for the code-block and that`s it - so far it`s only changed on LFEv2 theme, hope BP can do it on the other, I`m in a hurry...

CSS: codeblock code
-> font-family: Courier;

Pre tag is deleted


RE: space not being deleted / asciiart-tab - TheNave - 04-22-2010

Test:

butbutbut, it's in a box! big images not possible :o


RE: space not being deleted / asciiart-tab - Bamboori - 04-23-2010

that big images should be in a smaller font :P


RE: space not being deleted / asciiart-tab - Som1Lse - 04-23-2010

Solution:
    REGEXP-Code:
\[pre\](.*?)\[/pre\]
    HTML-Code:
<pre style="line-height: 50%">$1</pre>

The bug is that every line is repeated since there is the <br /> tag created by MyBB and the line break which isnt ignored in the pre tag.
What I did was simply making every line half as long.