Skip to content

Commit

Permalink
[#171,#229][Crum/Flashcards] Add a Line Break between Meaning and Crum.
Browse files Browse the repository at this point in the history
This is obviously related to #171, but you might be wondering how it has
anything to do with #229.
The answer is that, with the current HTML, some text extractors see
"Crum" and whatever precedes it as a single word, thus messing up with
our search function (and also with text highlighting experience in the
browser). Adding a line break is a way to ensure that this doesn't
happen.
  • Loading branch information
pishoyg committed Sep 4, 2024
1 parent a2254a1 commit f7691b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flashcards/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def _explanatory_alt(path: str) -> str:
greek,
roots_col("en-parsed", line_br=True, force=False),
),
"<br/>",
# Dictionary pages.
field.cat(
'<span class="right">',
Expand Down

0 comments on commit f7691b8

Please sign in to comment.