This is a read-only archive. No new posts or registrations. Privacy Page
Discussion

code test

4 min read

This thread's last reply is from . Advice, software, and links below may be out of date — treat specific steps and download links with caution.

quote :-

Disk /dev/sda: 64.0 GB, 64022175232 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125043311 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00052754

Device Boot Start End Blocks Id System
/dev/sda1 2048 4192255 2095104 82 Linux swap / Solaris
/dev/sda2 * 4192256 67102719 31455232 83 Linux
/dev/sda3 67102720 125042687 28969984 83 Linux


code
Disk /dev/sda: 64.0 GB, 64022175232 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125043311 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00052754

   Device Boot	  Start		 End	  Blocks   Id  System
/dev/sda1			2048	 4192255	 2095104   82  Linux swap / Solaris
/dev/sda2   *	 4192256	67102719	31455232   83  Linux
/dev/sda3		67102720   125042687	28969984   83  Linux

now the code should all be aligned eg:- 82,83,83 should be directly under id

manually aligned, should look like this.
Disk /dev/sda: 64.0 GB, 64022175232 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125043311 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00052754

	Device	Boot	  Start		 	End		Blocks	  Id		System
/dev/sda1				2048	   4192255	  2095104	  82		Linux swap / Solaris
/dev/sda2	 *	 4192256	 67102719	31455232	  83		Linux
/dev/sda3		 67102720	125042687	28969984	  83		Linux

i can't even easily manually align them correctly, what you see above looks nothing like what i see in the code box.

:popcorn:
to be honest blair, i have no idea, never played around with anything to do with web pages like the code(html, etc.), fonts, spacing and such.. all i know is that i'm used to the code after being copied looking exactly like what i'm seeing on my pc in my posts when posting at other forums. yes the spacing and things always change if the quote box is used but they shouldn't with the code box, after all isn't that the whole point, well as far as i'm aware it is. :D :popcorn:
Device Boot	  Start		 End	  Blocks   Id  System
/dev/sda1			2048	 4192255	 2095104   82  Linux swap / Solaris
/dev/sda2   *	 4192256	67102719	31455232   83  Linux
/dev/sda3		67102720   125042687	28969984   83  Linux
Is that what you are looking for?
if you notice on your pc oldman, each line should be aligned under it's headings on the top line. (just noticed it looks like you've just copied my code into a code box. :P ) so no, exactly under "id" should be the numbers 82, 83, 83 which they aren't in your code box, each line under it is offset slightly to the right depending on what came before it. Device Boot Start End Blocks Id System /dev/sda1 2048 4192255 2095104 82 Linux swap / Solaris /dev/sda2 * 4192256 67102719 31455232 83 Linux /dev/sda3 67102720 125042687 28969984 83 Linux see i get nearly the same result without using any quote or code boxes, what you should be seeing is more or less what you see in the last codebox in my first post. so there is definitely a problem somewhere with the code box html coding or something, probably to do with the way it pads in spaces to keep things aligned, in my opinion. :popcorn:
When I look in to the code box in my post the lines are alined. Unfortunately attachments aren't allowed in this forum. I can attach a screenshot in a different topic if you want.
yes please, and i'll try a different browser to and see if they are aligned there, can you take a screen shot of what you see in my first post too please. :popcorn:
nope still not aligned in a different browser ( konqueror ) but i did see lots of ads i never knew were there. :rofl: :popcorn: ok tried it in opera and chromium browsers too, so it's not a browser issue, it might be a html render/display problem depending on os windows v linux. shrugs. :popcorn:
your "passing knowledge" would put me to shame.. :rofl: and it's not as if this problem would popup often enough to stand out, can't say i've noticed it before. :popcorn: