d8d2d160a0
At the beginning the rendering was invalid because it parsed the entire content as a single line. For some reason, when I read the ticket description from the DB, all newlines are returned as CRLF. I don't know why yet or whether it can or should be changed, but as a quick fix, I made the handler function filter out the CRs from the text. Then the rendering is correct. This matches the documentation of Pandoc, which mentions the readers assume newlines are encoded as LF.
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
$# This file is part of Vervis.
|
|
$#
|
|
$# Written in 2016 by fr33domlover <fr33domlover@riseup.net>.
|
|
$#
|
|
$# ♡ Copying is an act of love. Please copy, reuse and share.
|
|
$#
|
|
$# The author(s) have dedicated all copyright and related and neighboring
|
|
$# rights to this software to the public domain worldwide. This software is
|
|
$# distributed without any warranty.
|
|
$#
|
|
$# You should have received a copy of the CC0 Public Domain Dedication along
|
|
$# with this software. If not, see
|
|
$# <http://creativecommons.org/publicdomain/zero/1.0/>.
|
|
|
|
<p>
|
|
<a href=@{TicketEditR shar proj num}>Edit this ticket
|
|
<p>
|
|
<form method=POST action=@{TicketR shar proj num}>
|
|
<input type=hidden name=_method value=DELETE>
|
|
<input type=submit value="Delete this ticket">
|
|
|
|
<p>
|
|
Created on #{formatTime defaultTimeLocale "%F" $ ticketCreated ticket} by
|
|
#{fromMaybe (sharerIdent author) $ sharerName author}
|
|
|
|
<p>
|
|
Status:
|
|
$if ticketDone ticket
|
|
Closed on #{formatTime defaultTimeLocale "%F" $ ticketClosed ticket} by
|
|
#{fromMaybe (sharerIdent closer) $ sharerName closer}
|
|
$else
|
|
Open
|
|
|
|
<h2>#{ticketTitle ticket}
|
|
|
|
^{desc}
|