Don't write unnecessary auto render value to SVG output (PR #26620)

15 views
Skip to first unread message

Blake-Madden

unread,
Jun 22, 2026, 9:45:18 AM (2 days ago) Jun 22
to wx-...@googlegroups.com, Subscribed

I'll get this fix in separately while I work on SVG unit tests.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26620

Commit Summary

  • 7921792 Don't write unnecessary auto render value to SVG output

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26620@github.com>

VZ

unread,
Jun 22, 2026, 9:56:51 AM (2 days ago) Jun 22
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26620)

Note that this will still result in an extra space (due to "%s " being present in the format string). Not sure if it's worth fixing, but it would be tidier if we avoided it.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26620/c4769054884@github.com>

Blake-Madden

unread,
Jun 22, 2026, 3:13:53 PM (2 days ago) Jun 22
to wx-...@googlegroups.com, Push

@Blake-Madden pushed 1 commit.

  • 88418a3 Remove extra spaces from output SVG


View it on GitHub or unsubscribe.


Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26620/before/792179248aa50123c4df2d4d8f8fc17a1ebc9eb8/after/88418a3cbf61d0ecafaa8ae003d9e2feaf9800d2@github.com>

Blake-Madden

unread,
Jun 22, 2026, 3:20:17 PM (2 days ago) Jun 22
to wx-...@googlegroups.com, Subscribed
Blake-Madden left a comment (wxWidgets/wxWidgets#26620)

Note that this will still result in an extra space (due to "%s " being present in the format string). Not sure if it's worth fixing, but it would be tidier if we avoided it.

Fixed


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26620/c4772133415@github.com>

VZ

unread,
Jun 23, 2026, 1:50:37 PM (11 hours ago) Jun 23
to wx-...@googlegroups.com, Subscribed

@vadz approved this pull request.

Thanks, this is difficult to review and I'm not sure if any changes here would be detected by our tests, but assuming you tested it and there are no missing spaces anywhere, it looks good and I'll merge it.

I do wonder if we could use some better/safer way of building strings with SVG attributes than wxString::Format("%s"), e.g. something like AttributeBuilder::Add("name", possibleEmptyValue).Add(...).ToString(). But we would definitely want to have tests detecting breakage first if we ever decide to change this code like this.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26620/review/4555778547@github.com>

VZ

unread,
Jun 23, 2026, 2:05:53 PM (11 hours ago) Jun 23
to wx-...@googlegroups.com, Subscribed

Closed #26620 via b3dea2e.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26620/issue_event/27107683971@github.com>

Reply all
Reply to author
Forward
0 new messages