Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-wiki
Commits
fa3c9166
Commit
fa3c9166
authored
Feb 14, 2013
by
benjaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
soft linebreak after images to conserve preceeding headline elements
parent
db07ac22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
wiki/plugins/images/markdown_extensions.py
+1
-1
wiki/plugins/images/templates/wiki/plugins/images/index.html
+1
-1
No files found.
wiki/plugins/images/markdown_extensions.py
View file @
fa3c9166
...
...
@@ -54,7 +54,7 @@ class ImagePreprocessor(markdown.preprocessors.Preprocessor):
html_before
,
html_after
=
html
.
split
(
caption_placeholder
)
placeholder_before
=
self
.
markdown
.
htmlStash
.
store
(
html_before
,
safe
=
True
)
placeholder_after
=
self
.
markdown
.
htmlStash
.
store
(
html_after
,
safe
=
True
)
line
=
placeholder_before
+
"
\n
"
.
join
(
caption_lines
)
+
placeholder_after
line
=
placeholder_before
+
"
\n
"
.
join
(
caption_lines
)
+
placeholder_after
+
"
\n
"
+
line
previous_line_was_image
=
False
if
not
line
is
None
:
new_text
.
append
(
line
)
...
...
wiki/plugins/images/templates/wiki/plugins/images/index.html
View file @
fa3c9166
...
...
@@ -32,7 +32,7 @@
<p>
<a
href=
"{% url 'wiki:images_add_revision' path=urlpath.path article_id=article.id image_id=image.id %}"
>
<span
class=
"icon-upload"
></span>
{% trans "Upload
new image
" %}
{% trans "Upload
replacement
" %}
</a>
<br
/>
{% if revision.deleted %}
<a
href=
"{% url 'wiki:images_restore' path=urlpath.path article_id=article.id image_id=image.id %}"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment