miyo-jp / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

How to produce/espace backtick (`) -character #234

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I fail to find information how to create backtick character with
jsdoc-toolkit template:

:class:`{+thisClass.alias+}`

--> :class:`myclassname`

jsdoc-toolkit gives an error:

>> There was an error evaluating the compiled code from template:
build_system/jsdoc-toolkit/templates/rst\index.tmpl
   The error was on line 10 SyntaxError: illegal character
line 9: };
line 10: output+="\n\n:class:"`+ (thisClass.alias) +"`\n        \n";

What is the correct way to achieve this?

Versions used
-------------
- jsdoc-toolkit: 2.3.0

Please provide any additional information below.

Original issue reported on code.google.com by juha.p.mustonen on 20 Aug 2009 at 12:24

GoogleCodeExporter commented 8 years ago
It's a bug in JsPLate, I'm afraid. You can avoid by writing :class:` 
{+thisClass.alias+} ` if that's possible, but I will 
release a bugfix this weekend for this otherwise.

Original comment by micmath on 21 Aug 2009 at 1:34

GoogleCodeExporter commented 8 years ago
Unfortunatelly, the workaround doesn't go with the RST documentation format (for
which I'm customizing the jsdoc-toolkit template) as it does not allow spaces 
between
the backticks and definition.

So I'll have to wait for the bugfix release, then. Thanks.

Original comment by juha.p.mustonen on 23 Aug 2009 at 1:12

GoogleCodeExporter commented 8 years ago
Any updates expected in the near future? Bug release would be appreciated.

Original comment by juha.p.mustonen on 2 Sep 2009 at 7:47

GoogleCodeExporter commented 8 years ago
This should be resolved in the latest release: 2.3.2

Original comment by micmath on 12 Sep 2009 at 6:27

GoogleCodeExporter commented 8 years ago
Confirmed - works as expected. Thanks for the fix!

Original comment by juha.p.mustonen on 12 Sep 2009 at 6:33