papercite icon indicating copy to clipboard operation
papercite copied to clipboard

Line break in abstract

Open kellertuer opened this issue 9 years ago • 2 comments

Hi there, thanks for providing such a nice way to include references in wordpress. I have a little problem with my abstracts - I include them in usual text format in the bib-File and use the following .tpl code snippet

@?abstract@
    <blockquote class="papercite_bibtex" id="papercite_abstract_@papercite_id@_block">
        @abstract@
    </blockquote>
@;abstract@

and some JS to show/hide the abstract. Nevertheless, the original abstract text sometimes includes linebreaks and even paragraphs (double line breaks) - these somehow vanish in this snipped - is there a way to include them? That would be very nice.

kellertuer avatar Aug 21 '15 09:08 kellertuer

There was some debate about this - some want line breaks to be respected, other do not... Difficult to solve this problem without introducing a new syntax, e.g.

@abstract:no-whitespace@

bpiwowar avatar Aug 25 '15 14:08 bpiwowar

I looked for the bib2tpl documentation but couldn't find anything, otherwise I ould've tried myself. But if there are different oppinions on that, you're right, it should be an option and I like your new syntax idea.

kellertuer avatar Aug 25 '15 15:08 kellertuer