[SOLVED] ZWO Imports with "-" in Description being interpreted as steps

@david just noticed that when sending / importing workouts in ZWO format, the description is being interpreted as steps.

<workout_file>
	<author>App4G (via TrainingPeaks)</author>
	<name>ERG Only</name>
	<description>- 2m 100w
- 2m 160w
- 2m 100w</description>
	<sportType>bike</sportType>
	<tags/>
	<workout>
		<Warmup Duration="120" PowerHigh="0.6" PowerLow="0.4">
		</Warmup>
		<SteadyState Duration="120" Power="0.8">
		</SteadyState>
		<Cooldown Duration="120" PowerHigh="0.4" PowerLow="0.6">
		</Cooldown>
	</workout>
</workout_file>

what are the possible workaround for this?

edit: I realised that this is cos of the description field in the JSON

"description" : "\n- 2m 100w\n- 2m 160w\n- 2m 100w",

I’ve regex’ed it out before uploading to TP

1 Like