Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Having multiple appendix nodes in item node causes panic. #4

Open
PokeyTheCat opened this issue May 16, 2018 · 0 comments
Open

Having multiple appendix nodes in item node causes panic. #4

PokeyTheCat opened this issue May 16, 2018 · 0 comments

Comments

@PokeyTheCat
Copy link

I only used the default options in Karabiner. I'm attempting to copy them into a private.xml and convert them to the JSON format. In my first attempt I've made it angry.

$ ./karaconv -i test.private.xml -o test.json
thread 'main' panicked at 'called Result::unwrap() on an Err value: duplicate field appendix', libcore/result.rs:945:5
note: Run with RUST_BACKTRACE=1 for a backtrace.

Example Item node copied from checkbox/for_pc_users.xml that causes issue:

<item>
  <name>Use PC Style Reload</name>
  <appendix>(Control+R to Command_L+R)</appendix>
  <appendix></appendix>
  <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
  <identifier>remap.copy_paste_winstyle_reload</identifier>
  <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
  {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
  <autogen>__KeyToKey__ KeyCode::R, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::R, ModifierFlag::COMMAND_L</autogen>
</item>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant