AEM6.5 source edit plugin adding "\r\n" after content adding in richtext inside Multifield
Hi All,
the Source Edit Plugin is adding a "\r\n" line break after the content that you are authoring in a multifield dialog with richtext fields in Adobe Experience Manager (AEM).
I am facing an issue where I have a multifield dialog having richtext fields. and whenever I am authorthing any values using Source Edit Plugin. and saving dialog it will automatically save "\r\n" regex after the authored content init
example:

and store like :

and if we check properties in crx node it shows one line break [enter] in porpery.
How to resolve this?
Thanks
@kautuk_sahni @arunpatidar @briankasingli @theo_pendle
[Update]
I am reading the richtext value with name.\value, which is having \r\n in the last of which we authored in source edit plugin and I am reading it like ValueMap vm = multifield.getValueMap; vm.getOrDefault("Value",StringUtils.EMPTY).toString()); I am manipulate the string to reove \r\n from the last :
like:
String value = vm.getOrDefault("Value", StringUtils.EMPTY).toString();
value = value.trim();
or
String value = vm.getOrDefault("Value", StringUtils.EMPTY).toString();
value = StringUtils.stripEnd(value, "\r\n");
Could you please suggest me any other optimized solution.