Skip to content

Commit

Permalink
Merge pull request apel#398 from tofu-rocketry/trailing-header
Browse files Browse the repository at this point in the history
Fix trailing whitespace in header
  • Loading branch information
tofu-rocketry authored Nov 20, 2024
2 parents 46845f6 + e0624fc commit aa5cc4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apel/db/loader/record_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def create_records(self, msg_text):
except KeyError:
try:
# Use the full header to distinguish normalised and non-norm summaries.
record_type = record_mapping[header]
record_type = record_mapping[header.strip()]
except KeyError:
raise RecordFactoryException('Message type %s not recognised.' % header)

Expand Down
2 changes: 1 addition & 1 deletion apel/db/unloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def _write_apel(self, records):
record_type = type(records[0])

buf = StringIO.StringIO()
buf.write(self.APEL_HEADERS[record_type] + ' \n')
buf.write(self.APEL_HEADERS[record_type] + '\n')
buf.write('%%\n'.join( [ record.get_msg(self._withhold_dns) for record in records ] ))
buf.write('%%\n')

Expand Down

0 comments on commit aa5cc4e

Please sign in to comment.