From 4a2d33f968eddecd690eb952ae22c8ad53b52433 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Thu, 31 Dec 2020 13:40:19 -0500 Subject: [PATCH] Fix bad XHTML in Worm Interlude 8 (Bonus) Part of #22. --- lib/substitutions.json | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/substitutions.json b/lib/substitutions.json index 991f542..677bcee 100644 --- a/lib/substitutions.json +++ b/lib/substitutions.json @@ -926,16 +926,14 @@ "after": "crash when the wave rolled" }, { - "regExp": "\n ?\\s*([^<]+)(
|

)", - "replacement": "\n

$1

" + "regExp": "
\n\\s*", + "replacement": "

\n

", + "_comment": "These are clearly paragraphs. Also the leading space is strange." }, { - "regExp": "\n

([^<]+)(
|

)", - "replacement": "\n

$1

" - }, - { - "regExp": "\n

([^<\n]+)
\n([^>\n]+)

\n", - "replacement": "\n

$1

\n

$2

\n" + "before": "Word choice, ‘too’: haunted by demons.
\nSwearing: antisocial.
", + "after": "Word choice, ‘too’: haunted by demons.

\n

Swearing: antisocial.", + "_comment": "This one has the surrounding the
, unlike the others." } ], "https://parahumans.wordpress.com/2012/03/10/extermination-8-3/": [