CSV to HTML translation: Difference between revisions

Content added Content deleted
m (→‎Simple solution: Non-rendered output for now, as i can't get it to work.)
Line 148: Line 148:
print(htmltxt)</lang>
print(htmltxt)</lang>


'''Sample (rendered) HTML output'''
'''Sample HTML output'''

<nowiki><TABLE summary="csv2html program output">
<lang html><TABLE summary="csv2html program output">
<TBODY><TR><TD>Character</TD><TD>Speech</TD></TR></TBODY>
<TBODY><TR><TD>Character</TD><TD>Speech</TD></TR></TBODY>
<TBODY><TR><TD>The multitude</TD><TD>The messiah! Show us the messiah!</TD></TR></TBODY>
<TBODY><TR><TD>The multitude</TD><TD>The messiah! Show us the messiah!</TD></TR></TBODY>
Line 156: Line 157:
<TBODY><TR><TD>Brians mother</TD><TD>I'm his mother; that's who!</TD></TR></TBODY>
<TBODY><TR><TD>Brians mother</TD><TD>I'm his mother; that's who!</TD></TR></TBODY>
<TBODY><TR><TD>The multitude</TD><TD>Behold his mother! Behold his mother!</TD></TR></TBODY>
<TBODY><TR><TD>The multitude</TD><TD>Behold his mother! Behold his mother!</TD></TR></TBODY>
</TABLE></nowiki>
</TABLE></lang>


===Extra credit solution===
===Extra credit solution===