From: Daniel Achermann <Daniel.A<chermann@lo...> - 2012-06-28 02:54:41
the parameter of @latex and @html is just passed through and not
interpreted. This causes problems, if you use some pasdoc escape
character inside the parameter text, specially the brackets, as they are
interpreted as a parameter delimiter.
To solve this it's possible to mark the inside brackets with the @-tag,
i.e. @( @) and pasdoc recognizes the parameter correctly. But as pasdoc
is not interpreting the parameter at all, the @) and @( goes unconverted
to the output text.
In my opinion pasdoc should always parse for @), @( and @@ and remove
the prevailing @ character. Do you agree with it?
I tried to fix this problem but was not yet able to find the correct
place in the code. I guess somewhere in TTagManager.CoreExecute... Does
anyone has a tip where to look?
Can this change be applied for all tags or should I restrict it to
@latex and @html?
Daniel Achermann wrote:
> In my opinion pasdoc should always parse for @), @( and @@ and remove
> the prevailing @ character. Do you agree with it?
Yes, good point. Since we already interpret @(, @), @@ specially inside
@latex and @html (and, as you point out, they are useful in this
context) we should also take care to convert them as necessary (strip
> I tried to fix this problem but was not yet able to find the correct
> place in the code. I guess somewhere in TTagManager.CoreExecute... Does
> anyone has a tip where to look?
I just did the appropriate change :) See the commit 1318
) for details. I also added a testcase for this to
tests/ok_at_character_in_verbatim.pas. You can test the pasdoc from SVN
or snapshots http://pasdoc.sipsolutions.net/DevelopmentSnapshots to test
> Can this change be applied for all tags or should I restrict it to
> @latex and @html?
It was already working for things outside of @latex and @html (actually,
anything with toRecursiveTags flag), so no need to change it there.
Get latest updates about Open Source Projects, Conferences and News.