Skip to content

Commit

Permalink
Merge pull request #197 from B2SHARE/ui/abstract-linebreaks-#171
Browse files Browse the repository at this point in the history
fixed #171: splitting abstract into paragraphs
  • Loading branch information
peskk3am committed Mar 20, 2014
2 parents 7c50d3c + 1450e4d commit 4ea49b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions invenio/lib/bibformat_elements/bfe_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ def format_element(bfo, prefix_en, prefix_fr, suffix_en, suffix_fr, limit, max_c

abstract_en = bfo.fields('520__a', escape=escape_mode_int)
abstract_en.extend(bfo.fields('520__b', escape=escape_mode_int))
abstract_en = [line for abstract in abstract_en for line in abstract.split("\n") if line]
abstract_en = separator_en.join(abstract_en)

abstract_fr = bfo.fields('590__a', escape=escape_mode_int)
abstract_fr.extend(bfo.fields('590__b', escape=escape_mode_int))
abstract_fr = [line for abstract in abstract_fr for line in abstract.split("\n") if line]
abstract_fr = separator_fr.join(abstract_fr)

if contextual == 'yes' and limit != "" and \
Expand Down
2 changes: 1 addition & 1 deletion simplestore/etc/templates/deposits.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h3 class="deposits-title">Latest Deposits</h3>
{% if dep.author %}
<li class="deposit-meta">by {{dep.author|safe}}</li>
{% endif %}
<li class="deposit-meta">{{dep.description}}</li>
<li class="deposit-meta">{{dep.description|safe}}</li>
</ul>
</li>
{% endfor %}
Expand Down

0 comments on commit 4ea49b3

Please sign in to comment.