Skip to content

Commit d74542e

Browse files
committed
add another comment explaining the separator
1 parent 896bc29 commit d74542e

File tree

1 file changed

+7
-0
lines changed
  • frontends/ol-components/src/components/LearningResourceExpanded

1 file changed

+7
-0
lines changed

frontends/ol-components/src/components/LearningResourceExpanded/InfoSection.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ const SeparatorContainer = styled.span({
2828
color: theme.custom.colors.silverGray,
2929
})
3030

31+
/*
32+
* Pipe followed by zero-width space, ZWSP.
33+
* By doing
34+
* <ITEM><PIPE><ZWSP><ITEM><PIPE><ZWSP>...
35+
* without whitespace between <ITEM> and <PIPE>, we allow line
36+
* breaks after the pipe but not before it.
37+
*/
3138
const Separator: React.FC = () => (
3239
<SeparatorContainer>|&#8203;</SeparatorContainer>
3340
)

0 commit comments

Comments
 (0)