From 8767e3453c7275f9fc9c30cb07edad10b54e7428 Mon Sep 17 00:00:00 2001 From: Taka Date: Sun, 25 Apr 2021 07:01:47 +1000 Subject: [PATCH] Show nested ASOP comments in italics. --- asl_rulebook2/webapp/static/ASOP.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/asl_rulebook2/webapp/static/ASOP.js b/asl_rulebook2/webapp/static/ASOP.js index 5a33768..8013c7a 100644 --- a/asl_rulebook2/webapp/static/ASOP.js +++ b/asl_rulebook2/webapp/static/ASOP.js @@ -195,7 +195,11 @@ gMainApp.component( "asop", { return caption ; }, - fixupContent( content ) { return wrapExcBlocks( content ) ; }, + fixupContent( content ) { + content = content.replace( /{.+?}/, "$&" ) ; // nb: nested comments are written as {...} :-/ + content = wrapExcBlocks( content ) ; + return content ; + }, },