Escape the JTAC zone name in the plugin data.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1218
This commit is contained in:
Dan Albert 2021-06-16 17:06:45 -07:00
parent c13bf3ccd1
commit 021445216e
2 changed files with 9 additions and 2 deletions

View File

@ -11,6 +11,14 @@ Saves from 3.x are not compatible with 4.0.
## Fixes
# 3.1.0
## Features/Improvements
## Fixes
* Fixed problem with mission load when control point name contained an apostrophe.
# 3.0.0
Saves from 2.5 are not compatible with 3.0.

View File

@ -578,8 +578,7 @@ class Operation:
zone = data["zone"]
laserCode = data["laserCode"]
dcsUnit = data["dcsUnit"]
lua += f" {{dcsGroupName='{dcsGroupName}', callsign='{callsign}', zone='{zone}', laserCode='{laserCode}', dcsUnit='{dcsUnit}' }}, \n"
# lua += f" {{name='{dcsGroupName}', description='JTAC {callsign} ', information='Laser:{laserCode}', jtac={laserCode} }}, \n"
lua += f" {{dcsGroupName='{dcsGroupName}', callsign='{callsign}', zone={repr(zone)}, laserCode='{laserCode}', dcsUnit='{dcsUnit}' }}, \n"
lua += "}"
# Process the Target Points