acts-project / acts-project/actsvg

Issue with ids containing dashes or spaces in svg objects

Đang mở
#48 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
1
Fork
11
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Using a dash or space in an svg object's id seems to cause issues (perhaps this is also the case with other characters). For example is when displaying information boxes, the following code from the information box tests works:

![Screenshot from 2023-09-01 19-55-47](https://github.com/acts-project/actsvg/assets/92879080/7e76d3b7-5475-45e2-a486-b5148db76b87)

However changing the id to either of the following examples results in the information box no longer being displayed.

![image](https://github.com/acts-project/actsvg/assets/92879080/a893e3ab-1c12-4770-9388-48ed92eb894a)
![image](https://github.com/acts-project/actsvg/assets/92879080/40f4bcb3-17bb-4bdd-896b-f91aa7834ba0)

Perhaps it would be beneficial to implement a check that notifies the user if the id is problematic.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.