Skip to content

Commit

Permalink
docs: corrected examples and formatting of predecessors
Browse files Browse the repository at this point in the history
  • Loading branch information
novoj committed Sep 22, 2023
1 parent 51490bc commit d2fcdc0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
@RequiredArgsConstructor
public class EvitaQLExecutable extends JsonExecutable implements Executable, EvitaTestSupport {
private static final String REF_LINK = "\uD83D\uDD17 ";
private static final String PREDECESSOR_HEAD_SYMBOL = "⎆";
private static final String PREDECESSOR_SYMBOL = "↻ ";
private static final String ATTR_LINK = ": ";
private static final Map<Locale, String> LOCALES = Map.of(
Expand Down Expand Up @@ -474,7 +475,7 @@ private static String generateMarkDownTable(
@Nonnull
private static String formatValue(@Nonnull Serializable value) {
if (value instanceof Predecessor predecessor) {
return PREDECESSOR_SYMBOL + predecessor.predecessorId();
return predecessor.isHead() ? PREDECESSOR_HEAD_SYMBOL : PREDECESSOR_SYMBOL + predecessor.predecessorId();
} else {
return EvitaDataTypes.formatValue(value);
}
Expand Down

0 comments on commit d2fcdc0

Please sign in to comment.