Loading...
 
Skip to main content

Single closing curly braces are lost when at the last line and saving on d.t.o.

Status
Open
Subject
Single closing curly braces are lost when at the last line and saving on d.t.o.
Version
25.x
Category
  • Bug
  • Dogfood on a *.tiki.org site
  • Easy for Newbie Dev
Feature
Trackers
Resolution status
Works For Me
Submitted by
hman
Lastmod by
hman
Rating
(0)
Related-to
Description

When you type the text of a bug report, sometimes you want to give code examples. In order to faithfully represent the text, there is the CODE clause with argument Colors="Tiki".

Copy to clipboard
.tiki-webmail .btn-primary, .tiki-cypht .btn-primary, .mobile.tiki-cypht .btn-primary, .inline-cypht .btn-primary { color: #fff !important; background-color: #2255aa !important; border-color: #1c458a !important; }


This code example DOES correctly close the definition of .btn-primary with a single closing curly brace. But it gets lost as soon as you save the text. Reproducibly. I've done it three times in a row... If you use double curly braces (which would be a syntax error), both get faitfully represented.

Tested on last line:

Copy to clipboard
.tiki-webmail .btn-primary, .tiki-cypht .btn-primary, .mobile.tiki-cypht .btn-primary, .inline-cypht .btn-primary { color: #fff !important; background-color: #2255aa !important; border-color: #1c458a !important; }
Importance
3
Easy to solve?
9
Priority
27
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8180
Created
Tuesday 23 August, 2022 21:26:04 UTC
by hman
LastModif
Wednesday 24 August, 2022 10:58:44 UTC


Show PHP error messages