12-15-2008, 09:00 PM
|
#11 (permalink)
|
Moderate your Moderation.
Join Date: Nov 2008
Location: Troy, Pa.
Posts: 8,919
Pasta - '96 Volkswagen Passat TDi 90 day: 45.22 mpg (US)
Thanks: 1,369
Thanked 430 Times in 353 Posts
|
LOL sweet. That will help definitely with large groups of data that never fixes into columns.
__________________
"¿ʞɐǝɹɟ ɐ ǝɹ,noʎ uǝɥʍ 'ʇı ʇ,usı 'ʎlǝuol s,ʇı"
|
|
|
Today
|
|
|
Other popular topics in this forum...
|
|
|
12-15-2008, 10:17 PM
|
#12 (permalink)
|
Master EcoModder
Join Date: Aug 2008
Location: South Dakota
Posts: 460
Thanks: 0
Thanked 15 Times in 4 Posts
|
Thanks a bunch.
__________________
|
|
|
12-15-2008, 10:29 PM
|
#13 (permalink)
|
Moderate your Moderation.
Join Date: Nov 2008
Location: Troy, Pa.
Posts: 8,919
Pasta - '96 Volkswagen Passat TDi 90 day: 45.22 mpg (US)
Thanks: 1,369
Thanked 430 Times in 353 Posts
|
So wait... that educational post... are both tables supposed to look the same? B/c I"m on FF3.0 and they look the same to me.
__________________
"¿ʞɐǝɹɟ ɐ ǝɹ,noʎ uǝɥʍ 'ʇı ʇ,usı 'ʎlǝuol s,ʇı"
|
|
|
12-15-2008, 10:56 PM
|
#14 (permalink)
|
Master EcoModder
Join Date: Aug 2008
Location: South Dakota
Posts: 460
Thanks: 0
Thanked 15 Times in 4 Posts
|
Quote:
Originally Posted by Christ
So wait... that educational post... are both tables supposed to look the same? B/c I"m on FF3.0 and they look the same to me.
|
Also looks the same to me in FF2.0 and IE7.0
__________________
|
|
|
12-17-2008, 07:39 PM
|
#15 (permalink)
|
Master EcoModder
Join Date: Aug 2008
Location: South Dakota
Posts: 460
Thanks: 0
Thanked 15 Times in 4 Posts
|
Extra lines before tables???
Just to try out the tables I reformatted some data that aerohead posted.
It appears that each line in the table generates a line of padding above the table?
At least that's how it appears in Firefox 2.0 and IE7.0.
Here is the post http://ecomodder.com/forum/showthrea...html#post79080
__________________
|
|
|
12-17-2008, 08:14 PM
|
#16 (permalink)
|
Pokémoderator
Join Date: Dec 2007
Location: Southern California
Posts: 5,864
Thanks: 439
Thanked 532 Times in 358 Posts
|
TestDrive -
Each of your carriage returns are being honored *within* the table. When I delete the carriage returns, it works :
TABLE STARTS ON NEXT LINE
The car | Mercedes-Benz 111/III | Height | 1,029mm(41.16 inches) | Width | 1,688mm(67.5 inches) | Length(competition) | 4,784mm(191.36 inches) | Curb Weight | 1,347 kg(2,965 pounds) | ...etc... | ...etc... | Truncated Boat-Tail Length | 700mm(28 inches) | PERFORMANCE | . | Top Speed @ Nardo Test-Track,Italy | 315.157 km/h(195.398MPH)-continuous 24-hour driving | Fuel Economy | 6.26 km/l(14.7mpg) @ 195.398 mph |
TABLE ENDS ABOVE THIS LINE
MetroMPG -
Is there an "ignore carriage return" for line endings option?
CarloSW2
|
|
|
12-17-2008, 08:24 PM
|
#17 (permalink)
|
Master EcoModder
Join Date: Aug 2008
Location: South Dakota
Posts: 460
Thanks: 0
Thanked 15 Times in 4 Posts
|
Quote:
Originally Posted by cfg83
Each of your carriage returns are being honored *within* the table. When I delete the carriage returns, it works :
|
Good catch. Thanks.
__________________
|
|
|
12-17-2008, 10:23 PM
|
#18 (permalink)
|
Batman Junior
Join Date: Nov 2007
Location: 1000 Islands, Ontario, Canada
Posts: 22,534
Thanks: 4,082
Thanked 6,979 Times in 3,614 Posts
|
Sorry, no easy fix, other than putting all the table code on a single line.
If it's a complex table, you could always build it in a text editor and strip out the CRs when you're done before you post it in the forum.
|
|
|
12-18-2008, 11:46 AM
|
#19 (permalink)
|
Ex-lurker
Join Date: Apr 2008
Location: Jersey
Posts: 571
Thanks: 2
Thanked 8 Times in 6 Posts
|
Diving into form submission code is always fun. Could be done with:
PHP Code:
$table_strings = array("[table]".chr(10), "[tr]".chr(10), "[/tr]".chr(10), "[/td]".chr(10));
$table_replace = array("[table]", "[tr]", "[/tr]", "[/td]");
$submit_text = str_replace($table_strings, $table_replace, $submit_text);
or similar before the database submission, probably inside whatever function is used to clean up the text.
__________________
|
|
|
02-04-2009, 08:48 AM
|
#20 (permalink)
|
Master EcoModder
Join Date: Aug 2008
Location: South Dakota
Posts: 460
Thanks: 0
Thanked 15 Times in 4 Posts
|
Maybe you could add an "Insert Table" button to the Advanced Posting Editor.
When clicked it just inserts the material in the quote below (or something similar).
This would make it easier for people to discover putting tables in posts.
Quote:
(Carriage returns between table tags appear just below this line.)
Data - Row 1, Col 1 | Data - Row 2, Col 2 |
Example Table:
Carriage returns within data appear within the table cell.
Carriage returns between table tags are not required and appear above the table.
Spaces at start of lines are eaten by the BB software. |
Data - Row 3, Col 3 | Data - Row 3, Col 4 |
|
|
|
|
|