liquid_feedback_frontend
view env/format/wiki_text.lua @ 127:4fb486bce608
add pageinator to issue view.
this "paginator" shows links to the prev/area/next issues that have the same
state then the current one. This helps a lot when inspecting new issues or voting.
The voting filter works a little bit different, as he also activtes the not_voted subfilter
because it is most likely only not voted issues are interessting to the user
this "paginator" shows links to the prev/area/next issues that have the same
state then the current one. This helps a lot when inspecting new issues or voting.
The voting filter works a little bit different, as he also activtes the not_voted subfilter
because it is most likely only not voted issues are interessting to the user
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Tue Oct 05 04:44:06 2010 +0200 (2010-10-05) |
parents | 80c215dbf076 |
children | f49cdfb72567 |
line source
1 function format.wiki_text(wiki_text, formatting_engine)
2 local formatting_engine = formatting_engine or "rocketwiki"
3 local html, errmsg, exitcode = assert(
4 os.pfilter(wiki_text, config.formatting_engine_executeables[formatting_engine])
5 )
6 if exitcode > 0 then
7 error("Wiki parser process returned with error code " .. tostring(exitcode))
8 elseif exitcode < 0 then
9 error("Wiki parser process was terminated by signal " .. tostring(-exitcode))
10 end
11 return html
12 end