First import
git-svn-id: http://photonzero.com/dotfiles/trunk@1 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
commit
83d40113d2
60 changed files with 4264 additions and 0 deletions
12
bin/htmlify
Executable file
12
bin/htmlify
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
concat = '<font face="courier new" size="-1"><br>'
|
||||
thisline = ""
|
||||
import sys
|
||||
for line in sys.stdin:
|
||||
thisline = line.expandtabs(7)
|
||||
thisline = thisline.replace("&", "&").replace("<","<").replace(">",">")
|
||||
thisline = thisline.replace("\n", "<br>")
|
||||
thisline = thisline.replace(" "," ")
|
||||
concat = concat + thisline # + "<br>"
|
||||
print concat + "</font>"
|
||||
Loading…
Add table
Add a link
Reference in a new issue