From 042d7d32384fa2e82c6fcd815f6b94fc8e345a1b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 21 Feb 2021 13:20:04 +0100 Subject: [PATCH] Improved the accessibility for code listings and quotes Fixes #3702 --- com.woltlab.wcf/templates/codeMetaCode.tpl | 4 ++-- com.woltlab.wcf/templates/quoteMetaCode.tpl | 2 +- ts/WoltLabSuite/Core/Bbcode/Code.ts | 13 ++++++++++++- ts/WoltLabSuite/Core/Bbcode/Collapsible.ts | 8 ++++++++ .../install/files/acp/templates/codeMetaCode.tpl | 4 ++-- .../files/js/WoltLabSuite/Core/Bbcode/Code.js | 11 ++++++++++- .../js/WoltLabSuite/Core/Bbcode/Collapsible.js | 6 ++++++ 7 files changed, 41 insertions(+), 7 deletions(-) diff --git a/com.woltlab.wcf/templates/codeMetaCode.tpl b/com.woltlab.wcf/templates/codeMetaCode.tpl index 35c0c8c4b1..98b9adbef1 100644 --- a/com.woltlab.wcf/templates/codeMetaCode.tpl +++ b/com.woltlab.wcf/templates/codeMetaCode.tpl @@ -3,14 +3,14 @@
{$title}{if $filename}: {$filename}{/if}
{if !$isAmp && $lines > 10} - + {/if} {assign var='lineNumber' value=$startLineNumber}
{foreach from=$content item=line}{*
 		*}{assign var='codeLineID' value='codeLine_'|concat:$lineNumber:'_':$codeID}{*
-		*}{$line}{*
+		*}{$line}{*
 		*}{assign var='lineNumber' value=$lineNumber+1}{*
 	*}{/foreach}
diff --git a/com.woltlab.wcf/templates/quoteMetaCode.tpl b/com.woltlab.wcf/templates/quoteMetaCode.tpl index 7b15fea581..9dcf9cbab3 100644 --- a/com.woltlab.wcf/templates/quoteMetaCode.tpl +++ b/com.woltlab.wcf/templates/quoteMetaCode.tpl @@ -26,7 +26,7 @@ {if $collapseQuote} - {lang}wcf.bbcode.button.showAll{/lang} + {lang}wcf.bbcode.button.showAll{/lang}