Skip to content

Conversation

@tapple
Copy link

@tapple tapple commented Jan 16, 2026

I made 3 changes that generate smaller diffs when compared against keywords_lsl_default.xml in the viewer and viewer cache. I needed that in secondlife/lsl-definitions#38 where I auto-generate those files

  • Adds option c-compat to xml generation.
    • before: <boolean>true</boolean>. after: <boolean>1</boolean>
    • before: <real>10.0</real>. after: <real>10</real>
    • before: <real>0.1</real>. after: <real>0.1000000000000000055511151</real>
  • Adds option sort_maps that sorts all the keys of a map alphabetically
    • I ended up not using this
  • When the pretty-printer is used, empty strings and arrays are now collapsed:
    • before: <string></string>. after: <string />
    • before: <array></array>. after: <after />

Part of a set of PR's improving the definitions and keywords files in lsl and slua:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant