diff --git a/include/Spyc.php b/include/Spyc.php index 17d67db3ea32baa729606efc7e42b6468b0d8131..1c0fc31a8c90db69aeaefe4291590fe3c4aea96d 100644 --- a/include/Spyc.php +++ b/include/Spyc.php @@ -863,9 +863,12 @@ class Spyc { } function startsLiteralBlock ($line) { - $lastChar = substr (trim($line), -1); - if ($lastChar != '>' && $lastChar != '|') return false; - if ($lastChar == '|') return $lastChar; + $matches = array(); + if (!preg_match('`(>|\|)[\d+-]?$`', $line, $matches)) + return false; + + $lastChar = $matches[1]; + // HTML tags should not be counted as literal blocks. if (preg_match ('#<.*?>$#', $line)) return false; return $lastChar; diff --git a/scp/css/scp.css b/scp/css/scp.css index f52ab06aa135baa9895bbf162c4174a2bf4670b3..d608875c2d7c9667810009765a4dbc5d5e18defb 100644 --- a/scp/css/scp.css +++ b/scp/css/scp.css @@ -1340,7 +1340,7 @@ time { overflow-y: auto; } -.dialog .popup-loading { +.dialog #popup-loading { position:absolute; text-align:center; background:rgba(255,255,255,0.8);