diff --git a/hepdata_converter/writers/yoda_writer.py b/hepdata_converter/writers/yoda_writer.py index d936851..8445695 100644 --- a/hepdata_converter/writers/yoda_writer.py +++ b/hepdata_converter/writers/yoda_writer.py @@ -103,7 +103,7 @@ def _create_estimate(self): v = self.xval[dim_i][i] m = self.xerr_minus[dim_i][i] p = self.xerr_plus[dim_i][i] - edge = '{0} - {1}'.format(v-m, v+p) if m and p else str(v) + edge = '{0} - {1}'.format(v-m, v+p) if m and p else str(v.replace('\n', ' ')) if edge not in thisaxis: thisaxis.append(edge) edges.append(sorted(thisaxis) if isCAxis[-1] else thisaxis) @@ -145,7 +145,7 @@ def _create_estimate(self): elif isIntAxis[dim_i]: edges.append(int(v)) else: - newedge = '{0} - {1}'.format(v-m, v+p) if m and p else str(v) + newedge = '{0} - {1}'.format(v-m, v+p) if m and p else str(v.replace('\n', ' ')) edges.append(newedge) # calculate global index idx = rtn.indexAt(*edges)