Skip to content

Commit

Permalink
fix: don't wrap HTML data with newlines when serializing for LC
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmccormick committed Sep 23, 2024
1 parent a2e2959 commit 7a96c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openedx/core/lib/xblock_serializer/block_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _serialize_html_block(self, block) -> etree.Element:

# Escape any CDATA special chars
escaped_block_data = block.data.replace("]]>", "]]>")
olx_node.text = etree.CDATA("\n" + escaped_block_data + "\n")
olx_node.text = etree.CDATA(escaped_block_data)
return olx_node


Expand Down

0 comments on commit 7a96c0b

Please sign in to comment.