News for hackers. Stuff that matters.
Re:A better Hackerbuddy by mike-cardwell on Friday December 02, 2011 @07:24AM (#3303732)
FYI, to get a monospace font, you have to wrap the entire thing in a <pre>. However, when displayed, line feed characters (\n) are converted to "\n<br>\n", which turns into three blank lines in a pre. So when editing, you need to make sure you use <br> and never any real \n's.

To start a line with spaces, you have to use "&#160;" when editing. You should also convert all double spaces " " to "&#160; " if you want them to be displayed nicely.

That's how I lined things up in my profile.

The idea is that you select the PGP signed text, and then paste it into "gpg --verify". This works fine in Firefox and Chrome, but when you copy the data in IE, the clipboard version contains no \n chars. If I could have used <span> instead of <pre> this problem wouldn't have manifested. The profile editor wouldn't let me do that though.

I wish "copy" behaviour was consistant across browsers, when copying from a web page.

Re:A better Hackerbuddy by illdave on Friday December 02, 2011 @12:55PM (#3304905)
I am really impressed that you did that :)

I'll make sure when I'm updating the CSS to leave <pre> styled the same way it is - if I change anything that messes with your formatting, let me know - I don't want to break what you've done!

Re:A better Hackerbuddy by mike-cardwell on Saturday December 03, 2011 @06:44AM (#3307537)
Thanks, but you shouldn't let one users profile dictate your sites styling. Feel free to break it. I'll just fix it if you do.