[xiphos-source] [crosswire/xiphos] 5a0a49: parallel sets: fix XML-invalid characters in set n...

LAfricain noreply at github.com
Sat Aug 1 14:52:06 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/crosswire/xiphos
  Commit: 5a0a49c133e967631e8cfe32e5b30996e562f9ec
      https://github.com/crosswire/xiphos/commit/5a0a49c133e967631e8cfe32e5b30996e562f9ec
  Author: L'Africain <fr.cyrille at tiberiade.be>
  Date:   2026-08-01 (Sat, 01 Aug 2026)

  Changed paths:
    M src/gtk/navbar_versekey_parallel.c
    M src/gtk/preferences_dialog.c
    M src/main/settings.c
    M src/main/settings.h

  Log Message:
  -----------
  parallel sets: fix XML-invalid characters in set names (#1356)

Set names with spaces or other XML-special characters caused a parser
error on startup when used as XML tag names (e.g. 'Short set' became
<parallel_set_Short set> which is invalid XML).

Fix: automatically convert spaces to underscores when storing set names
as XML keys, and convert back for display in the UI.

New helpers in settings.c:
  name_to_key(name) - convert display name to XML key (space -> _)
  key_to_name(key)  - convert XML key to display name (_ -> space)

Fixes crash on startup when a parallel set name contains a space.

Co-authored-by: lafricain79 <lafricain79 at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/crosswire/xiphos/settings/notifications


More information about the xiphos-source mailing list