Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
if (BB < 0) { // block not set
|
||||
BB(0) // convert entire file
|
||||
BE(File_Size)
|
||||
}
|
||||
|
||||
// Convert special characters into entities
|
||||
Replace_Block("&","&", BB, BE, BEGIN+ALL+NOERR)
|
||||
Replace_Block("<","<", BB, BE, BEGIN+ALL+NOERR)
|
||||
Replace_Block(">",">", BB, BE, BEGIN+ALL+NOERR)
|
||||
|
||||
// Convert CSV into HTML table
|
||||
Goto_Pos(BB)
|
||||
IT('<table>') IN
|
||||
#80 = Cur_Pos
|
||||
Goto_Pos(BE)
|
||||
IT("</table>")
|
||||
#81 = Cur_Line
|
||||
IN
|
||||
Goto_Pos(#80)
|
||||
while (Cur_Line < #81) {
|
||||
IT(" <tr><td>")
|
||||
Replace_Block(",","</td><td>",Cur_Pos,EOL_Pos,ALL+NOERR)
|
||||
EOL
|
||||
IT("</td></tr>")
|
||||
Line(1)
|
||||
}
|
||||
BB(Clear)
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<table>
|
||||
<tr><td>Character</td><td>Speech </td></tr>
|
||||
<tr><td>The multitude</td><td>The messiah! Show us the messiah! </td></tr>
|
||||
<tr><td>Brians mother</td><td><angry>Now you listen here! He's not the messiah; he's a very naughty boy! Now go away!</angry> </td></tr>
|
||||
<tr><td>The multitude</td><td>Who are you? </td></tr>
|
||||
<tr><td>Brians mother</td><td>I'm his mother; that's who! </td></tr>
|
||||
<tr><td>The multitude</td><td>Behold his mother! Behold his mother!</td></tr>
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue