Skip to content

Commit

Permalink
Fixing Cui.Utilities.copyToClipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Mar 16, 2024
1 parent b476c46 commit 2dabb58
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ protected void doEncodeEnd(final FacesContext context, final DecoratingResponseW
writer.withTextContent(component.getDescription().formatted(), true);
writer.withEndElement(Node.P);
}
final var resolvedSource = component.resolveSource().replace("%", "%%").replace("%n",
LINE_SEPARATOR);
final var resolvedSource = component.resolveSource().replace("%", "%%").formatted().replace("%n",
LINE_SEPARATOR);
if (component.isEnableClipboard()) {
renderCopyElements(writer, resolvedSource);
}
Expand Down

0 comments on commit 2dabb58

Please sign in to comment.