Rev 17748 | Rev 17770 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17748 | Rev 17752 | ||
---|---|---|---|
Line 315... | Line 315... | ||
315 | {r} |
315 | {r} |
316 | </body> |
316 | </body> |
317 | </html> |
317 | </html> |
318 | """.format(r = result) |
318 | """.format(r = result) |
319 | elif tocxx: |
319 | elif tocxx: |
320 |
|
320 | cxxcode = 'const char * html_table = ' |
- | 321 | for line in result.split("\n"): |
|
- | 322 | line = line.replace('"', r'\"') + r'\n' |
|
- | 323 | cxxcode += '"'+line+'"\n' |
|
- | 324 | cxxcode = cxxcode[:-1] + ";\n" |
|
321 |
|
325 | result = cxxcode |
322 | return result |
326 | return result |
323 | 327 | ||
324 | def create_cxx_source( target = "html_table.cc"): |
328 | def create_cxx_source( target = "html_table.cc"): |
325 | """ |
329 | """ |
326 | Écrit une source valide pour C++11, qui définit un élément HTML valide |
330 | Écrit une source valide pour C++11, qui définit un élément HTML valide |