adapted to new docutils version

This commit is contained in:
Araq 2012-05-06 01:48:43 +02:00
commit 690e66e6ba
3 changed files with 5 additions and 2 deletions

View file

@ -62,7 +62,7 @@
<td class="content"> <td class="content">
#try: #try:
${content.rstToHtml({roSupportSmilies})} ${content.rstToHtml({roSupportSmilies})}
#except ERecoverableError: #except ERecoverableError, EParseError:
# c.errorMsg = getCurrentExceptionMsg() # c.errorMsg = getCurrentExceptionMsg()
#end #end
</td> </td>

View file

@ -315,7 +315,7 @@ proc validateRst(c: var TForumData, content: string): bool =
result = true result = true
try: try:
discard content.rstToHtml({roSupportSmilies}) discard content.rstToHtml({roSupportSmilies})
except ERecoverableError: except ERecoverableError, EParseError:
result = setError(c, "", getCurrentExceptionMsg()) result = setError(c, "", getCurrentExceptionMsg())
proc crud(c: TCrud, table: string, data: openArray[string]): TSqlQuery = proc crud(c: TCrud, table: string, data: openArray[string]): TSqlQuery =

View file

@ -9,3 +9,6 @@
--path:"../nimrod" --path:"../nimrod"
--path:"../nimrod/compiler" --path:"../nimrod/compiler"
--path:"$nimrod/packages/docutils"