Escape the JTAC zone name in the plugin data.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1218

(cherry picked from commit 021445216e)
This commit is contained in:
Dan Albert
2021-06-16 17:06:45 -07:00
parent df97110546
commit 83c311c853
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,11 @@
# 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

@@ -593,8 +593,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