Skip to content

Commit

Permalink
fix: escape " character
Browse files Browse the repository at this point in the history
  • Loading branch information
sogladev committed Mar 8, 2024
1 parent 2226fe4 commit c5af0ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spanish/format.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
"html = style.to_html()\n",
"filename = DATASET+'_underscore_shuffled'\n",
"with open(f'output/{filename}.html', 'w') as f:\n",
" f.write('<meta charset="UTF-8">'+html)\n",
" f.write('<meta charset=\"UTF-8\">'+html)\n",
"\n",
"cmd = f'pandoc -f html -t pdf output/{filename}.html -t html5 -o output/{filename}.pdf --metadata pagetitle=\"{filename}\" -V margin-top=1cm -V margin-bottom=1cm -V margin-left=1cm -V margin-right=1cm -c format/table.css --pdf-engine-opt=--enable-local-file-access'\n",
"os.system(cmd)\n",
Expand All @@ -342,7 +342,7 @@
"data.sort_values('word') # alphabetical\n",
"filename = DATASET + '_underscore_alphabetical'\n",
"with open(f'output/{filename}.html', 'w') as f:\n",
" f.write('<meta charset="UTF-8">'+html)\n",
" f.write('<meta charset=\"UTF-8\">'+html)\n",
"cmd = f'pandoc -f html -t pdf output/{filename}.html -t html5 -o output/{filename}.pdf --metadata pagetitle=\"{filename}\" -V margin-top=1cm -V margin-bottom=1cm -V margin-left=1cm -V margin-right=1cm -c format/table.css --pdf-engine-opt=--enable-local-file-access'\n",
"os.system(cmd)"
]
Expand Down Expand Up @@ -400,7 +400,7 @@
"html = style.to_html()\n",
"filename = DATASET+'_shuffled'\n",
"with open(f'output/{filename}.html', 'w') as f:\n",
" f.write('<meta charset="UTF-8">'+html)\n",
" f.write('<meta charset=\"UTF-8\">'+html)\n",
"\n",
"cmd = f'pandoc -f html -t pdf output/{filename}.html -t html5 -o output/{filename}.pdf --metadata pagetitle=\"{filename}\" -V margin-top=1cm -V margin-bottom=1cm -V margin-left=1cm -V margin-right=1cm -c format/table.css --pdf-engine-opt=--enable-local-file-access'\n",
"os.system(cmd)\n",
Expand All @@ -410,7 +410,7 @@
"data.sort_values('word') # alphabetical\n",
"filename = DATASET + '_alphabetical'\n",
"with open(f'output/{filename}.html', 'w') as f:\n",
" f.write('<meta charset="UTF-8">'+html)\n",
" f.write('<meta charset=\"UTF-8\">'+html)\n",
"cmd = f'pandoc -f html -t pdf output/{filename}.html -t html5 -o output/{filename}.pdf --metadata pagetitle=\"{filename}\" -V margin-top=1cm -V margin-bottom=1cm -V margin-left=1cm -V margin-right=1cm -c format/table.css --pdf-engine-opt=--enable-local-file-access'\n",
"os.system(cmd)"
]
Expand Down

0 comments on commit c5af0ce

Please sign in to comment.