Skip to content

Commit 9912d55

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f224311 commit 9912d55

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

openlibrary/plugins/upstream/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,13 +637,13 @@ def add_metatag(tag: str = "meta", **attrs) -> None:
637637
def is_rtl(text: str) -> bool:
638638
"""
639639
Check if the given text is right-to-left (RTL) using Unicode bidirectional properties.
640-
640+
641641
Args:
642642
text: The text to check for RTL characters
643-
643+
644644
Returns:
645645
bool: True if the text contains RTL characters, False otherwise
646-
646+
647647
Examples:
648648
>>> is_rtl("Hello World")
649649
False

openlibrary/templates/merge/authors.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ <h1>$_("Merge Authors")</h1>
9393
<ul>
9494
$for doc in top.docs:
9595
<li>
96-
<a href="$doc['key']"
97-
target="new"
96+
<a href="$doc['key']"
97+
target="new"
9898
title="$_('Open in a new window')"
9999
$:cond(is_rtl(doc['title']), 'dir="rtl"', '')
100100
>$doc['title']</a>

0 commit comments

Comments
 (0)