fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
custom pdf download via ajaxable
[wolnelektury.git]
/
apps
/
search
/
index.py
diff --git
a/apps/search/index.py
b/apps/search/index.py
index
10069e4
..
6c76901
100644
(file)
--- a/
apps/search/index.py
+++ b/
apps/search/index.py
@@
-280,7
+280,7
@@
class Index(IndexStore):
return
def fix_format(text):
- return re.sub("
/$", "", text, flags=re.M
)
+ return re.sub("
(?m)/$", "", text
)
def add_part(snippets, **fields):
doc = self.create_book_doc(book)