Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Double quotes in text fields break loading save. #312

Open
fleetfootmike opened this issue Oct 9, 2023 · 0 comments
Open

Double quotes in text fields break loading save. #312

fleetfootmike opened this issue Oct 9, 2023 · 0 comments

Comments

@fleetfootmike
Copy link

fleetfootmike commented Oct 9, 2023

Describe the bug
Double quotes in text fields break loading save.

To Reproduce
Steps to reproduce the behavior:

  1. Start Force Balancer
  2. Add a Unit
  3. In the Lance field, type "foo" test and tab out of the field
  4. Save the force as foo.bfb.
  5. Quit, reopen, reload the force.
  6. Save will not load.

Expected behavior
Force should reload.

foo.bfb contains the following line:
<group name=""foo" test" logo="" type="Inner Sphere" >
which fails the XML parser, because the quotes around foo should be escaped, I assume.

From Logs/bfb.log

Loading Scenario from /Users/mike/foo.bfb
[Fatal Error] foo.bfb:7:27: Element type "group" must be followed by either attribute specifications, ">" or "/>".
Element type "group" must be followed by either attribute specifications, ">" or "/>".

Screenshots
See attached

Desktop (please complete the following information):

  • OS: MacOS 13.3.1 (a)
  • JRE openjdk 11.0.20.1 2023-08-24

Screenshot 2023-10-09 at 10 16 30

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

No branches or pull requests

1 participant