Skip to content

Commit

Permalink
Update BaseContent.cfc
Browse files Browse the repository at this point in the history
removal of pretty print, let the user do this instead.
lmajano authored Jan 13, 2025
1 parent 3c92c17 commit 071d32e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions modules/contentbox/models/content/BaseContent.cfc
Original file line number Diff line number Diff line change
@@ -1120,18 +1120,7 @@ component
* Retrieves the latest content string from the latest version un-translated
*/
string function getContent(){
var thisContent = getActiveContent().getContent();

// Check for json and format it for pretty print
if ( isJSON( thisContent ) ) {
return variables.JSONPrettyPrint.formatJson(
json : thisContent,
lineEnding : chr( 10 ),
spaceAfterColon: true
);
}

return thisContent;
return getActiveContent().getContent();
}

/**

0 comments on commit 071d32e

Please sign in to comment.