I have been using below snippet via Java Rest API to update a confluence page which renders my text as expected via the <code> block. Since past couple of days, <code> block recognizes the line break as new code block.
"<ac:structured-macro ac:name='code' ac:schema-version='1' ac:macro-id='31e'>"
"<ac:plain-text-body>"
"<code>"+data+</code>"
data field contains below in a .txt format
account-a region-zxcvb 2021-03-25 11:22:51
account-b region-piuyt 2019-12-05 13:07:34
Previous Rendering in Confluence - Good
Since past few days - Bad
Any help is greatly appreciated!!!