Entering style attribute that begins with a semicolon causes the XML editor to delete the style attribute

Bug #518677 reported by Will Pittenger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

If you use the XML editor to manually set the style of an object and the style string begins with a semicolon, Inkscape 0.47 clears the style instead of setting it. It appears the semicolon causes the parser to conclude the entire string is blank. Conversely, if the string ends with a semicolon, Inkscape will strip it out. The same behavior should be used when the semicolon begins the string. I assume that a TrimRight and TrimLeft functions are available that can remove both spaces and semicolons.

I am using Vista SP2 64-bit.

Tags: xmleditor
su_v (suv-lp)
tags: added: xmleditor
Changed in inkscape:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Beluga (buovjaga) wrote :

Still repro. I wrote it like ;opacity.

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15054 (GTK3)

Revision history for this message
Jonathan Hofinger (jhofinger) wrote :

Replicated in 0.92.4, Windows 10. Not replicated in 1.1-dev (c990a67, 2020-04-09), the style tag is ignored, but not deleted on save or when opening with the XML editor.

I've filed a new issue in inbox for the ignored style tag: https://gitlab.com/inkscape/inbox/-/issues/2304

Closed by: https://gitlab.com/jhofinger

Changed in inkscape:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.