From c5af0ce94c481d077410ef212f90c4de97742e15 Mon Sep 17 00:00:00 2001 From: Jelle Meeus Date: Fri, 8 Mar 2024 15:15:44 +0100 Subject: [PATCH] fix: escape " character --- spanish/format.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spanish/format.ipynb b/spanish/format.ipynb index 3a2e687..95f8377 100644 --- a/spanish/format.ipynb +++ b/spanish/format.ipynb @@ -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(''+html)\n", + " f.write(''+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", @@ -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(''+html)\n", + " f.write(''+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)" ] @@ -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(''+html)\n", + " f.write(''+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", @@ -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(''+html)\n", + " f.write(''+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)" ]