Item14925: Ugly message in System.PatternSkinCssCookbookSidebarToggle

pencil
Priority: Enhancement
Current State: New
Released In: n/a
Target Release:
Applies To: Extension
Component: PatternSkin
Branches:
Reported By: ChristianKern
Waiting For:
Last Change By: ChristianKern
-- ChristianKern - 11 Jun 2020

 

In Foswiki, when setting a variable, you may easily end up with values containing trailing blanks. For example, by writing Set␣SKIN␣=␣bla,blubb␣, you get a value of SKIN which has a blank at the end.

Usually, you won't even notice that "mistake" since it has no negative side effects.

But: In System.PatternSkinCssCookbookSidebarToggle there's a line
Your current SKIN setting is =%SKIN%=

When the value of SKIN ends with a blank, then you don't get your text in monospace font, instead you see the "=" characters:
Your currrent SKIN setting is =bla,blubb =

I propose replacing "=%SKIN%=" with "<pre>%SKIN%</pre>".

ItemTemplate edit

Summary Ugly message in System.PatternSkinCssCookbookSidebarToggle
ReportedBy ChristianKern
Codebase
SVN Range
AppliesTo Extension
Component PatternSkin
Priority Enhancement
CurrentState New
WaitingFor
Checkins
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
I Attachment Action Size Date Who Comment
PatternSkinCssCookbookSidebarToggle.patchpatch PatternSkinCssCookbookSidebarToggle.patch manage 724 bytes 11 Jun 2020 - 19:34 ChristianKern Patch file for /var/www/foswiki/data/System/PatternSkinCssCookbookSidebarToggle.txt
Topic revision: r1 - 11 Jun 2020, ChristianKern
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy