From 587fe18606cba7015c4cc5f75421e27bf55b51b5 Mon Sep 17 00:00:00 2001 From: Sergiusz Warga Date: Mon, 23 Nov 2020 01:41:22 +0100 Subject: [PATCH] Adjusting input size to data-expected length --- app/templates/LLPSI/Pensum_cloze.html | 13 +++++++++++++ .../Pensa/01_Imperium_Romanum_Pensum_A.html | 2 +- text2pensum.py | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/app/templates/LLPSI/Pensum_cloze.html b/app/templates/LLPSI/Pensum_cloze.html index adfc8bf..cccaef5 100644 --- a/app/templates/LLPSI/Pensum_cloze.html +++ b/app/templates/LLPSI/Pensum_cloze.html @@ -4,6 +4,18 @@ Familia Romana – Pensum A \ No newline at end of file diff --git a/app/templates/Pensa/01_Imperium_Romanum_Pensum_A.html b/app/templates/Pensa/01_Imperium_Romanum_Pensum_A.html index e8fa12d..19ec91e 100644 --- a/app/templates/Pensa/01_Imperium_Romanum_Pensum_A.html +++ b/app/templates/Pensa/01_Imperium_Romanum_Pensum_A.html @@ -1 +1 @@ -Nīlus fluvi est. Nīlus et Rhēnus fluvi , Crēta īnsul . Crēta et Rhodus īnsul sunt. Brundisium oppid . Brundisium et Tūsculum oppid sunt. \ No newline at end of file +Nīlus fluvi est. Nīlus et Rhēnus fluvi , Crēta īnsul . Crēta et Rhodus īnsul sunt. Brundisium oppid . Brundisium et Tūsculum oppid sunt. \ No newline at end of file diff --git a/text2pensum.py b/text2pensum.py index 33174d0..66515d1 100755 --- a/text2pensum.py +++ b/text2pensum.py @@ -5,7 +5,7 @@ with open(sys.argv[1], 'r') as infile: content = infile.read() # Replace _string_ with html -html_head = '' content = re.sub(r'_([a-zA-Z\-]+)_', html_head+r'\1'+html_tail, content)