Skip to content

Commit 2a140ea

Browse files
authored
GitHub Issue 916: Copying/pasting in the grid doesn't always act as expected (#7510)
1 parent a417263 commit 2a140ea

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

api/src/org/labkey/api/util/PageFlowUtil.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2673,10 +2673,15 @@ else if (peek(pos, charArray) == '"')
26732673

26742674
// Google Sheets compatible version of joinValuesToString()
26752675
public static String joinValuesToStringForExport(@NotNull List<String> values)
2676+
{
2677+
return joinValuesToStringForExport(values, ", ");
2678+
}
2679+
2680+
public static String joinValuesToStringForExport(@NotNull List<String> values, String delimiter)
26762681
{
26772682
return values.stream()
26782683
.map(value -> null==value ? "" : shouldEscapeForExport(value) ? "\"" + Strings.CS.replace(value,"\"", "\"\"") + "\"": value)
2679-
.collect(Collectors.joining(", "));
2684+
.collect(Collectors.joining(delimiter));
26802685
}
26812686

26822687
private static boolean shouldEscapeForExport(@NotNull String value)

0 commit comments

Comments
 (0)