Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-09

fpdoc xml files with special characters

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

How is fpdoc's xml files supposed to handle special characters? For example, I tried to type the '&' character, and fpdoc complained. I then escaped the ampersand with & which was fine.

This is all great for HTML output, but what will happen with LaTeX output. Will it display the ampersand, or the escaped ampersand (&)? I guess this all depends on the XMLReader unit and if it reverts the & back to the & sign correct?

Regards,
- Graeme -

There's no place like 127.0.0.1
Graeme Geldenhuys
to Michael Van Canneyt: It will deal this correctly. The backends will escape the characters again if needed.…
Michael Van Canneyt wrote 9 lines
> This is all great for HTML output, but what will happen with LaTeX > output. Will it display the ampersand, or the escaped ampersand > (&)? I guess this all depends on the XMLReader unit and if it > reverts the & back to the & sign correct? It will deal this correctly. The backends will escape the characters again if needed. Different backends must escape in different ways... Michael.

Thanks for confirming that Michael! You guys thought of everything. :-)

G.

Michael Van Canneyt
to Graeme Geldenhuys: How is fpdoc's xml files supposed to handle special characters? For example, I tried to…
Graeme Geldenhuys wrote 10 lines
Hi, How is fpdoc's xml files supposed to handle special characters? For example, I tried to type the '&' character, and fpdoc complained. I then escaped the ampersand with & which was fine. This is all great for HTML output, but what will happen with LaTeX output. Will it display the ampersand, or the escaped ampersand (&)? I guess this all depends on the XMLReader unit and if it reverts the & back to the & sign correct?

It will deal this correctly. The backends will escape the characters again if needed. Different backends must escape in different ways...

Michael.