Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,8 +1,8 @@
|
|||
String::__defineGetter__ 'escaped', () ->
|
||||
this.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"') // rosettacode doesn't like "
|
||||
this.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"') // rosettacode doesn't like "
|
||||
|
||||
text = '''
|
||||
Character,Speech
|
||||
|
|
@ -19,21 +19,21 @@ header = lines.shift()
|
|||
|
||||
console.log """
|
||||
<table cellspacing="0">
|
||||
<thead>
|
||||
<th scope="col">#{header[0]}</th>
|
||||
<th scope="col">#{header[1]}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<thead>
|
||||
<th scope="col">#{header[0]}</th>
|
||||
<th scope="col">#{header[1]}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
"""
|
||||
|
||||
for line in lines
|
||||
[character, speech] = line
|
||||
console.log """
|
||||
<th scope="row">#{character}</th>
|
||||
<td>#{speech.escaped}</td>
|
||||
"""
|
||||
[character, speech] = line
|
||||
console.log """
|
||||
<th scope="row">#{character}</th>
|
||||
<td>#{speech.escaped}</td>
|
||||
"""
|
||||
|
||||
console.log """
|
||||
</tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
"""
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue