Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed24e4f
)
added unix_newlines()
author
Jason Woofenden
<jason@vorticies.(none)>
Sun, 10 Dec 2006 10:11:28 +0000
(
05:11
-0500)
committer
Jason Woofenden
<jason@vorticies.(none)>
Sun, 10 Dec 2006 10:11:28 +0000
(
05:11
-0500)
basics.php
patch
|
blob
|
history
diff --git
a/basics.php
b/basics.php
index
3a60248
..
72a33a3
100644
(file)
--- a/
basics.php
+++ b/
basics.php
@@
-10,4
+10,10
@@
function read_whole_file($name) {
return $temp;
}
+function unix_newlines($str) {
+ $str = str_replace("\r\n", "\n", $str);
+ return str_replace("\r", "\n", $str);
+}
+
+
?>