--- Log opened Mon Sep 28 00:00:02 2009
01:15 < dancor> is there a portable name for "." (current dir)
05:17 < McManiaC> 04:45  mightybyte McManiaC: Is all of n-sch.de written in happstack? <- currently just paste.n-sch.de, but tbh, theres not much else on it :) most of it is static html or files
19:28 < McManiaC> hey
19:28 < McManiaC> i figured out this strange "new line bug" with highlighting-kate only occures when people use the html form to post data on my pastebin (http://paste.n-sch.de)
19:29 < McManiaC> does anyone have an idea why this happens with that form and not with a "cat <file> | curl -F "content=<-" paste.n-sch.de:8000" command?
19:30 < Zao> Because textareas have awesome newline rules?
19:31 < McManiaC> hmmm
19:32 < McManiaC> how awesome? ^^ is there anything that can be done?
19:33 < Zao> Apart from maybe some javascript sanitizing, I don't think you have much choice but to postprocess it on your side.
19:33 < Zao> What's the bug by the way?
19:33 < McManiaC> http://paste.n-sch.de/5/hs this for example
19:33 < McManiaC> should have only 4 linces
19:33 < McManiaC> *3
19:33 < McManiaC> as the numbers state
19:34 < mightybyte> Is it a CR/LF problem?
19:34 < McManiaC> my god i cant type tonight
19:34 < McManiaC> CR/LF?
19:34 < mightybyte> Some systems represent a newline as just the linefeed (LF) character.
19:35 < McManiaC> hmm
19:35 < mightybyte> Some systems require a CR/LF pair
19:35 < Zao> McManiaC: There's ^M characters in your HTMl.
19:35 < mightybyte> 0xD 0xA
19:36 < Zao> http://www.acc.umu.se/~zao/html.png
19:37 < Zao> Trim away any trailing whitespace, I'd say.
19:37 < Zao> Where \r qualifies as whitespace.
19:38 < McManiaC> with map mytrim $ unlines text ?
20:06 < McManiaC> Zao: yay! it works :)
20:08 < McManiaC> http://paste.n-sch.de/6/hs :D
20:15 < Zao> Hooray.
20:16 < McManiaC> http://paste.n-sch.de/7/hs
20:16 < McManiaC> does this look ok? ^^
20:18 < Zao> Likely.
20:20 < McManiaC> :)
20:20 < McManiaC> thx for the tipp
20:21 < McManiaC> /hint
20:21 < McManiaC> ^^
20:23 < Zao> As a developer on Windows, I encounter those bloody half-newlines all the time :)
20:25 < McManiaC> :)
20:26 < McManiaC> or double-newlines in my case
20:26 < McManiaC> ^
--- Log closed Tue Sep 29 00:00:33 2009